From 0a2cff974b95031658cc00e0b6dbf650a4832c84 Mon Sep 17 00:00:00 2001 From: Daniel A Kessler Date: Tue, 29 May 2012 16:00:42 -0400 Subject: [PATCH] Add cell to mc_GenPath.m to cleanOutputTemplate of any double file delimiters. This should fix #58 --- matlabScripts/mc_GenPath.m | 4 ++++ 1 file changed, 4 insertions(+) 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