in reply to Re: Checking for directory write permissions
in thread Checking for directory write permissions

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).


No good deed goes unpunished. -- (attributed to) Oscar Wilde
  • Comment on Re^2: Checking for directory write permissions