diff --git a/matlabScripts/mc_GenPath.m b/matlabScripts/mc_GenPath.m index efe7735f..aef679a3 100644 --- a/matlabScripts/mc_GenPath.m +++ b/matlabScripts/mc_GenPath.m @@ -89,6 +89,7 @@ if(isfield(Template,'type')); type=Template.type; end; Template = Template.Template; end + %% Do bracket expansion % Parse Template to Identify Variables index1=strfind(Template,'['); @@ -292,6 +293,9 @@ end end +%% Clean OutputTemplate of any double file delimiters +OutputTemplate = regexprep(OutputTemplate,[filesep '+'],filesep); + %% Make path if it doesn't exist (if supposed to) if(strcmpi('makedir',mode)) if exist(OutputTemplate,'file') == 0