in reply to converting stat() $mode to unix file permissions
printf '%o', (stat $filename)[2] & 07777; # Updated: Thanks to [duff] $unixmode = (stat $filename)[2] & 07777; # Updated. One too few 7s.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: converting stat() $mode to unix file permissions
by duff (Parson) on Jan 25, 2004 at 17:00 UTC | |
|
Re: Re: converting stat() $mode to unix file permissions
by knowmad (Monk) on Mar 30, 2004 at 19:14 UTC |