[Tutor] How to get file permissions (Python 2.4)?
leam hall
leamhall at gmail.com
Wed Mar 19 17:48:00 CET 2014
I can use os.chmod('/usr/local/somefile') to change permissions but I
haven't been able to find a way to test for file modes.
>>> stat.S_IRWXU('/usr/bin/python')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: 'int' object is not callable
What should I be looking for? Python 2.4.3 (RHEL 5)
Thanks!
Leam
--
Mind on a Mission
More information about the Tutor
mailing list