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 272d279 commit 6877e1eCopy full SHA for 6877e1e
+stdlib/is_absolute.m
@@ -6,15 +6,14 @@
6
7
function y = is_absolute(p)
8
arguments
9
- p {mustBeTextScalar}
+ p string
10
end
11
-
12
-% not Octave is_absolute_filename() because this is a stricter check for "c:" false
+% declare p string to avoid infinite recursion on stdlib.absolute('') on Windows
13
14
y = ~stdlib.strempty(stdlib.root_dir(p));
15
16
if ispc()
17
- y = y && ~stdlib.strempty(stdlib.root_name(p));
+ y(y) = ~stdlib.strempty(stdlib.root_name(p(y)));
18
19
20
0 commit comments