⭐ in reply to How do I get all the permission flags on a file?
Also, I don't know if you would be concerned with ACL's at all, I'm not sure how you would handle those if you were, just wanted to give you a heads up depending on how detailed you're being.sub return_mode { my $mode = shift; my @modelist = (($mode & 7000)>>9, ($mode & 0700)>>6, ($mode & 007 +0)>>3, ($mode &0007)); return join('', @modelist); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Answer: How do I get all the permission flags on a file?
by merlyn (Sage) on Sep 26, 2000 at 06:44 UTC | |
by BastardOperator (Monk) on Sep 26, 2000 at 17:00 UTC | |
by merlyn (Sage) on Sep 26, 2000 at 18:21 UTC | |
by BastardOperator (Monk) on Sep 26, 2000 at 19:17 UTC | |
by merlyn (Sage) on Sep 26, 2000 at 19:23 UTC |