in reply to Re: How do I check if another user can access a file?
in thread How do I check if another user can access a file?
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.
|
|---|