File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 77end
88
99if ispc()
10- if ismember(filepath , [" /" , " \" ]) || ...
11- (endsWith(filepath , [" /" , filesep ]) && isfolder(filepath ) && filepath == stdlib .root(filepath ))
10+ fs = {' /' , filesep };
11+ if ismember(filepath , fs ) || ...
12+ (endsWith(filepath , fs ) && ...
13+ isfolder(filepath ) && ...
14+ strcmp(filepath , stdlib .root(filepath )))
1215 y = true ;
1316 return
1417 end
1518 cmd = sprintf(' pwsh -c "(Get-Item -Path ''%s'' ).Attributes.ToString().Contains('' ReparsePoint'' )"' , filepath );
1619elseif ismac()
17- if filepath == " / "
20+ if strcmp( filepath , ' / ' )
1821 y = true ;
1922 return
2023 end
21- cmd = sprintf(' [ $(stat -f %% d "%s ") != $(stat -f %% d "%s ")]' , ...
24+ cmd = sprintf(' [ $(stat -f %% d "%s ") != $(stat -f %% d "%s ") ]' , ...
2225 filepath , stdlib .parent(filepath ));
2326else
2427 cmd = sprintf(' mountpoint -q "%s "' , filepath );
2730[s , m ] = system(cmd );
2831
2932if ispc()
30- y = s == 0 && m == " True" ;
33+ y = s == 0 && strcmp( m , ' True' ) ;
3134else
3235 y = s == 0 ;
3336end
You can’t perform that action at this time.
0 commit comments