
May 17th, 2004, 06:56 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
The S_XXX are just a bunch of constant values and you're supposed to logical-OR them to get your permissions value. They are just there to give symbolic names to a bunch of values. In your case, you already know what the final permissions value is supposed to be (647 in octal), so you can to do is:
Code:
os.chmod("/path/to/file", 0647)
Note the leading 0, which tells it that it is an octal number.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
Last edited by Scorpions4ever : May 17th, 2004 at 06:59 PM.
|