Posted By

arcturus on 10/03/07


Tagged

python


Versions (?)

Check read perms


 / Published in: Python
 

You can also check other kind of perms changing the constant os.R_OK

  1. import os
  2.  
  3. path = "/home/arcturus/.bash_history"
  4.  
  5. os.access(path, os.R_OK)

Report this snippet  

You need to login to post a comment.