Message126889
The docs for os.chmod claim:
Availability: Unix, Windows.
Although Windows supports chmod(), you can only set the file's read-only flag with it (via the stat.S_IWRITE and stat.S_IREAD constants or a corresponding integer value). All other bits are ignored.
So at least according to the current docs, we should be okay calling `os.chmod(file_path, stat.S_IREAD)` on Unix and Windows (and of course OS X too). Is that enough or did you have other platforms in mind? |
|
Date |
User |
Action |
Args |
2011-01-23 11:56:02 | bethard | set | recipients:
+ bethard, georg.brandl, eric.araujo, doughellmann, SilentGhost, akira, Tarsis.Azevedo |
2011-01-23 11:56:02 | bethard | set | messageid: <1295783762.42.0.43861212966.issue9509@psf.upfronthosting.co.za> |
2011-01-23 11:55:58 | bethard | link | issue9509 messages |
2011-01-23 11:55:58 | bethard | create | |
|