I think this is a better solution, or at least one that should not be overlooked. Actually trying to write the file can also expose other errors (disk full comes to mind, etc.) which may not be identified by a simple -w (especially at the directory level).
In reply to Re^2: Checking for directory write permissions
by ptum
in thread Checking for directory write permissions
by sara2005
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |