We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f89fcc4 commit 30bafddCopy full SHA for 30bafdd
+stdlib/+fileio/path_tail.m
@@ -8,6 +8,11 @@
8
9
import stdlib.fileio.absolute_path
10
11
+if isempty(apath)
12
+ last = string.empty;
13
+ return
14
+end
15
+
16
if strlength(apath) == 0
17
last = "";
18
return
+stdlib/+fileio/with_suffix.m
@@ -11,6 +11,10 @@
suffix (1,1) string
end
+if isempty(filename)
[direc, name, ext] = fileparts(filename);
19
if ext ~= suffix
20
filename = fullfile(direc, name + suffix);
0 commit comments