Anybody working with Python on windows have experience manipulating permissions for folders or files?
The docs I've found all say that stat.S_IREAD and stat.S_IWRITE should at least work with windows, but I'm having no luck or no effect on permissions for directories:
# 1. Run this
import os, stat
path = "c:/PermissionTest"
os.makedirs(path, stat.S_IWRITE)
# 2. Check if path exists, then run this
path = "c:/PermissionTest"
os.chmod(path, stat.S_IREAD)
I get no errors, but then, no permissions are changed on the file either. Any help in this department, or a link to the right reference would be appreciated.
-Brad
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi