Re: How to control permission of file?
- From: Grant Edwards <grante@xxxxxxxx>
- Date: Fri, 30 Jun 2006 20:15:21 -0000
On 2006-06-30, K.S.Sreeram <sreeram@xxxxxxxxxxxxxxx> wrote:
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
Thanks. I thought maybe there was a less arcane way to do it.
--
Grant Edwards grante Yow! FROZEN ENTREES may
at be flung by members of
visi.com opposing SWANSON SECTS...
.
- References:
- How to control permission of file?
- From: Grant Edwards
- Re: How to control permission of file?
- From: K.S.Sreeram
- How to control permission of file?
- Prev by Date: Re: Regular Expression - old regex module vs. re module
- Next by Date: Re: Import bug: Module executed twice when imported!
- Previous by thread: Re: How to control permission of file?
- Index(es):
Relevant Pages
|