Can anyone tell me what is the meaning of the number from the ST_MODE
function?
Example:
>>>import os
>>>stat = os.stat('/home')
>>>print stat.st_mode
16877
it prints 16877
. What is that for?
It's the permission bits of the file.
>>> oct(16877)
'040755'
See the various stat.S_*
attributes for more info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With