You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running on Linux and accessing a FAT partition, os.chmod fails with otherwise sensible partitions:
>>> os.chmod("/media/IHP-100/Test.lyx", 400)
>>> os.chmod("/media/IHP-100/Test.lyx", 600)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
OSError: [Errno 1] Operation not permitted: '/media/IHP-100/Test.lyx'
The only thing that seems to be allowed is `4'.
Activity
rgheck commentedon Aug 3, 2007
birkenfeld commentedon Aug 3, 2007
Why do you think this is Python's fault? os.chmod() is only a very thin wrapper around the OS' chmod().
rgheck commentedon Aug 3, 2007
Well, the shell's chmod doesn't return an error.
I don't know what would happen in C, say.
nnorwitz commentedon Aug 7, 2007
Note: you are *not* using octal in python, but the chmod program is using octal:
Try prefixing 400/600 with a zero, ie: 0400 or 0600.
pythonGH-45272: remove os.path from Python/frozen.c
pythonGH-45272: os.path should not be a frozen module