D
Dave T
I've got a little script which needs to put it's output in a user-
specified directory and I'd like to make sure that the user has
permission to write to the directory before letting the script try.
I've seen some posts which suggest trying to write a file to the
directory first, while other suggested using GetAtrr(). GetAtrr()
only seems to want to tell me that the specified directory is in fact
a directory.
Is there a simple way to check that the user has write permissions or
am I better off try to write a file and trapping that error?
specified directory and I'd like to make sure that the user has
permission to write to the directory before letting the script try.
I've seen some posts which suggest trying to write a file to the
directory first, while other suggested using GetAtrr(). GetAtrr()
only seems to want to tell me that the specified directory is in fact
a directory.
Is there a simple way to check that the user has write permissions or
am I better off try to write a file and trapping that error?