Skip to content

Commit 4bff874

Browse files
committed
use existing info
1 parent ace18cb commit 4bff874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+stdlib/get_modtime.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
end
1212

1313
finf = dir(file);
14-
if isfolder(file)
14+
if finf.isdir
1515
% find which index of the struct array has member name == '.'
1616
i = find(strcmp({finf.name}, '.'), 1);
1717
finf = finf(i);

0 commit comments

Comments
 (0)