2005-10-01 11:17:40 +02:00
|
|
|
function DirectoryName = CheckPath(type)
|
2008-01-15 11:41:52 +01:00
|
|
|
|
|
|
|
% function DirectoryName = CheckPath(type)
|
|
|
|
% Creates the repertory 'type' if it does not exist yet
|
|
|
|
%
|
|
|
|
% INPUTS
|
|
|
|
% type
|
|
|
|
%
|
|
|
|
% OUTPUTS
|
|
|
|
% none
|
|
|
|
%
|
|
|
|
% SPECIAL REQUIREMENTS
|
|
|
|
% none
|
|
|
|
%
|
|
|
|
% part of DYNARE, copyright Dynare Team (2005-2007)
|
|
|
|
% Gnu Public License.
|
|
|
|
|
2005-10-01 11:17:40 +02:00
|
|
|
global M_
|
|
|
|
|
2006-01-16 09:20:11 +01:00
|
|
|
DirectoryName = [ M_.dname '/' type ];
|
2005-10-01 11:17:40 +02:00
|
|
|
|
2006-03-06 11:00:32 +01:00
|
|
|
if ~isdir(DirectoryName)
|
|
|
|
mkdir('.',DirectoryName);
|
2005-10-01 11:17:40 +02:00
|
|
|
end
|