Check read perms


/ Published in: Python
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. import os
  2.  
  3. path = "/home/arcturus/.bash_history"
  4.  
  5. os.access(path, os.R_OK)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.