Re: How to control permission of file?
- From: "K.S.Sreeram" <sreeram@xxxxxxxxxxxxxxx>
- Date: Sat, 01 Jul 2006 01:31:04 +0530
Grant Edwards wrote:
When one open()s a file (that doesn't exist) for writing , how
does one control that file's permissions (it's "mode" in Unix
terms).
Check out 'os.open'
It returns a file descriptor, and if you need a file object you can use
'os.fdopen' on the file descriptor
Regards
Sreeram
Attachment:
signature.asc
Description: OpenPGP digital signature
- Follow-Ups:
- Re: How to control permission of file?
- From: Grant Edwards
- Re: How to control permission of file?
- References:
- How to control permission of file?
- From: Grant Edwards
- How to control permission of file?
- Prev by Date: Re: Reddit broke - should have remained on Lisp?
- Next by Date: Re: Py2exe make wxPython window looks bad
- Previous by thread: How to control permission of file?
- Next by thread: Re: How to control permission of file?
- Index(es):
Relevant Pages
|