24 lines
430 B
Matlab
24 lines
430 B
Matlab
function DirectoryName = CheckPath(type)
|
|
|
|
% 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.
|
|
|
|
global M_
|
|
|
|
DirectoryName = [ M_.dname '/' type ];
|
|
|
|
if ~isdir(DirectoryName)
|
|
mkdir('.',DirectoryName);
|
|
end |