in reply to Checking for directory write permissions
As an alternate to using -w or stat, just try and write and handle the error. If the open returns failure check if $! == EACCESS; if it does then there was a permissions problem (presuming you've done a use POSIX qw( :errno_h ) of course).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checking for directory write permissions
by ptum (Priest) on Jun 26, 2006 at 20:10 UTC |