File tree Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1+ %% PERL.DEVICE filesystem device index of path
2+
13function [r , cmd ] = device(file )
24
35c = ' ($f=shift) && -e $f or exit 1; print +(stat $f)[0]' ;
Original file line number Diff line number Diff line change 1+ %% PERL.GET_UID tell UID (numeric) of current user
2+
13function u = get_uid()
24
35u = [];
Original file line number Diff line number Diff line change 66% %% Outputs
77% ok: true if path is a file and has executable permissions
88
9- function ok = is_exe(file )
9+ function [ ok , b ] = is_exe(file )
1010arguments
1111 file string
1212end
1313
1414if isscalar(file )
1515 ok = stdlib .legacy .is_exe(file );
16+ b = ' legacy' ;
1617else
1718 ok = stdlib .native .is_exe(file );
19+ b = ' native' ;
1820end
1921
2022end
Original file line number Diff line number Diff line change 55% %% Outputs
66% ok: true if file is readable
77
8- function ok = is_readable(file )
8+ function [ ok , b ] = is_readable(file )
99arguments
1010 file string
1111end
1212
1313if isscalar(file )
1414 ok = stdlib .legacy .is_readable(file );
15+ b = ' legacy' ;
1516else
1617 ok = stdlib .native .is_readable(file );
18+ b = ' native' ;
1719end
1820
1921end
Original file line number Diff line number Diff line change 55% %% Outputs
66% * ok: true if file is writable
77
8- function ok = is_writable(file )
8+ function [ ok , b ] = is_writable(file )
99arguments
1010 file string
1111end
1212
1313if isscalar(file )
1414 ok = stdlib .legacy .is_writable(file );
15+ b = ' legacy' ;
1516else
1617 ok = stdlib .native .is_writable(file );
18+ b = ' native' ;
1719end
1820
1921end
You can’t perform that action at this time.
0 commit comments