forecast_graphs: force creation of subdirectory for storing graphs
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3165 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
5616f1f2a8
commit
6e8cc2e8db
|
@ -1,6 +1,6 @@
|
||||||
function forecast_graphs(var_list)
|
function forecast_graphs(var_list)
|
||||||
|
|
||||||
% Copyright (C) 2008 Dynare Team
|
% Copyright (C) 2008-2009 Dynare Team
|
||||||
%
|
%
|
||||||
% This file is part of Dynare.
|
% This file is part of Dynare.
|
||||||
%
|
%
|
||||||
|
@ -54,6 +54,9 @@ function forecast_graphs(var_list)
|
||||||
% $$$ end
|
% $$$ end
|
||||||
|
|
||||||
% create subdirectory <fname>/graphs if id doesn't exist
|
% create subdirectory <fname>/graphs if id doesn't exist
|
||||||
|
if ~exist(fname, 'dir')
|
||||||
|
mkdir('.',fname);
|
||||||
|
end
|
||||||
if ~exist([fname '/graphs'])
|
if ~exist([fname '/graphs'])
|
||||||
mkdir(fname,'graphs');
|
mkdir(fname,'graphs');
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue