File tree Expand file tree Collapse file tree 2 files changed +6
-19
lines changed Expand file tree Collapse file tree 2 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 2121 base {mustBeTextScalar } = pwd()
2222end
2323
24- c = p ;
25- if stdlib .is_absolute( c )
26- return
24+ if stdlib .is_absolute( p )
25+ c = p ;
26+ return
2727end
2828
29- if ~strempty(base )
30- b = stdlib .absolute(base );
31- else
32- b = pwd();
33- end
34-
35- if ~strempty(c )
36- c = fullfile(b , c );
37- else
38- c = b ;
39- end
40-
41- if isstring(p ) || isstring(base )
42- c = string(c );
43- end
29+ c = fullfile(stdlib .absolute(base ), p );
4430
4531end
4632
Original file line number Diff line number Diff line change 1- %% STEM filename without directory or suffix
1+ %% STEM file name without directory or suffix
22
33function st = stem(p )
44arguments
88[~ , n , s ] = fileparts(p );
99
1010if strempty(n )
11+ % leading dot filename
1112 st = s ;
1213else
1314 st = n ;
You can’t perform that action at this time.
0 commit comments