Actually trying to access a file is the only way you'll be sure that you can access it. What if you're using some other file-system, e.g. AFS, which has different means of access control? chrestomanci has the best general way here.
Of course, you may know how/where the code will be executed and may know that this level of generality is not required.
In reply to Re^2: How do I check if another user can access a file?
by thargas
in thread How do I check if another user can access a file?
by mtnboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |