Re: How to control permission of file?
- From: Schüle Daniel <uval@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 01 Jul 2006 00:06:38 +0200
True, but I don't see what it has to do with my question.
my mistake, I misunderstood your question
as Sreeram said, os.open can be used
help(os.open)
Help on built-in function open:
open(...)
open(filename, flag [, mode=0777]) -> fd
Open a file (for low level IO).
>>> import os
>>> fd=os.open("secret", os.O_WRONLY|os.O_CREAT, 0400)
>>> os.write(fd,"not for everybody")
17
>>> os.close(fd)
ls -l secret
-r-------- 1 root root 17 2006-07-01 00:05 secret
Regards, Daniel
.
- References:
- Re: How to control permission of file?
- From: Schüle Daniel
- Re: How to control permission of file?
- From: Grant Edwards
- Re: How to control permission of file?
- Prev by Date: Re: How to control permission of file?
- Next by Date: Re: Regular Expression - old regex module vs. re module
- Previous by thread: Re: How to control permission of file?
- Next by thread: Re: Regular Expression - old regex module vs. re module
- Index(es):