File tree Expand file tree Collapse file tree 3 files changed +3
-13
lines changed Expand file tree Collapse file tree 3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 77 p (1 ,1 ) string
88end
99
10- ok = false ;
11- if ~stdlib .exists(p ), return , end
12-
1310a = file_attributes(p );
14- if isempty(a ), return , end
1511
16- ok = a .UserExecute || a .GroupExecute || a .OtherExecute ;
12+ ok = ~isempty( a ) && ( a .UserExecute || a .GroupExecute || a .OtherExecute ) ;
1713
1814end
1915
Original file line number Diff line number Diff line change 77 p (1 ,1 ) string
88end
99
10- ok = false ;
11-
1210a = file_attributes(p );
13- if isempty(a ), return , end
1411
15- ok = a .UserRead || v .GroupRead || v .OtherRead ;
12+ ok = ~isempty( a ) && ( a .UserRead || v .GroupRead || v .OtherRead ) ;
1613
1714end
1815
Original file line number Diff line number Diff line change 77 p (1 ,1 ) string
88end
99
10- ok = false ;
11-
1210a = file_attributes(p );
13- if isempty(a ), return , end
1411
15- ok = a .UserWrite || v .GroupWrite || v .OtherWrite ;
12+ ok = ~isempty( a ) && ( a .UserWrite || v .GroupWrite || v .OtherWrite ) ;
1613
1714end
1815
You can’t perform that action at this time.
0 commit comments