From 798a7580bb91c0b9db9d212e5f11a411479ba3ec Mon Sep 17 00:00:00 2001 From: kk1995 Date: Tue, 21 May 2024 15:09:21 -0400 Subject: [PATCH] Update filesepStandard.m allowing for double slash at the beginning --- Utils/Shared/filesepStandard.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Utils/Shared/filesepStandard.m b/Utils/Shared/filesepStandard.m index 78027340..e099c99e 100644 --- a/Utils/Shared/filesepStandard.m +++ b/Utils/Shared/filesepStandard.m @@ -49,7 +49,9 @@ idxs = []; k = find(pathname0=='\' | pathname0=='/'); for ii = 1:length(k) - if (ii>1) && (k(ii) == k(ii-1)+1) + if (ii>1) && (k(ii) == k(ii-1)+1) && (k(ii) > 2) + % adjacent two values are same, and the values are not the + % first two characters (for paths like \\ad\eng\ ...) idxs = [idxs, k(ii)]; %#ok continue; end