stat, chmod and RDONLY file (win32)?
greg.ewing at compaq.com
Tue Aug 17 23:36:54 CEST 1999
"T. C. Mits" wrote:
> mean that one must supply the c-run-time bit flags,
> documented elsewhere (where?), as mentioned in the open() API blurb, such as
No, O_RDONLY and friends are a completely different set
of modes (confusing, I know!)
The sort of mode you want here consists of 3 octal
digits, for owner, group and other. Each digit
contains read, write and execute permission bits
in that order.
So, to add write permission for the owner, for
instance, "or" the existing permissions with
There's also a fourth octal digit to the
left which contains the setuid, setgid and
sticky bits, but these aren't relevant for what
you're doing here.
Hope that helps,
More information about the Python-list