Skip to content

Commit

Permalink
get_permissions(): handle Windows that doesn't define Group
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Sep 18, 2024
1 parent 6791367 commit 2da078c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions +stdlib/get_permissions.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
if v.UserExecute
p = replaceBetween(p, 3, 3, "x");
end
if v.GroupRead
if ~isnan(v.GroupRead) && logical(v.GroupRead)
p = replaceBetween(p, 4, 4, "r");
end
if v.GroupWrite
if ~isnan(v.GroupWrite) && logical(v.GroupWrite)
p = replaceBetween(p, 5, 5, "w");
end
if v.GroupExecute
if ~isnan(v.GroupExecute) && logical(v.GroupExecute)
p = replaceBetween(p, 6, 6, "x");
end
if v.OtherRead
Expand Down

0 comments on commit 2da078c

Please sign in to comment.