Skip to content

Commit 3288e25

Browse files
committed
speed, compatibility
1 parent 5926799 commit 3288e25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

+stdlib/private/file_attributes.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
return
88
end
99

10-
for n = ["GroupRead", "GroupWrite", "GroupExecute", "OtherRead", "OtherWrite", "OtherExecute"]
10+
pv = {'GroupRead', 'GroupWrite', 'GroupExecute', 'OtherRead', 'OtherWrite', 'OtherExecute'};
1111

12+
for i = 1:numel(pv)
13+
n = pv{i};
1214
if ~isfield(a, n) || isnan(a.(n))
1315
a.(n) = false;
1416
end
15-
1617
end
1718

1819
end

0 commit comments

Comments
 (0)