469,602 Members | 1,984 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

Folder Permissions


Is there a way to determine what folder permissions I have before trying to
write a file to it?

My dilema is that I have to write a file to two folders (on different
machines). If one write fails for whatever reason, I need to go back and
delete the file from the folder where the write was successful. To
complicate things, the file that was written successfully might already by
moved by a secondary process of which I have no control over.

My thought was to test for the existance and permissions of a folder before
trying to write to it, thus minimizing the possibility that I will encounter
a problem.

Is this possible?

Thanks,
Mark

Jul 12 '06 #1
0 729

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.