Skip to content

Commit 96cf956

Browse files
committed
Matlab < R2020b compatibility: string array
1 parent 62f204c commit 96cf956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

+stdlib/+legacy/file_attributes.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
arguments
33
p (1,1) string
44
end
5-
% need arguments for Matlab < R2020b
5+
% need arguments and stdlib.strempty for Matlab < R2020b
66

7-
assert(strlength(p), 'Path must not be empty.')
7+
assert(~stdlib.strempty(p), 'Path must not be empty.');
88

99
[status, s] = fileattrib(p);
1010

0 commit comments

Comments
 (0)