Checking File permissions

Avell Diroll avelldiroll at yahoo.fr
Thu Jul 20 09:56:53 EDT 2006


Anoop wrote:
> Please tell me how to check the existence of a file and the read
> permission to the file using python script

You can check the os module (os.stat comes to mind).

For an exemple you can have a look at :
http://www.pixelbeat.org/talks/python/ls.py

Regards,

Avell



More information about the Python-list mailing list