newbie permission problem
Sol Mumey
smumeyyahoocom at add.dots
Sun Oct 3 03:00:19 EDT 2004
More information about the Python-list mailing list
Sun Oct 3 03:00:19 EDT 2004
- Previous message (by thread): newbie permission problem
- Next message (by thread): newbie permission problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ann wrote: > I am new to python. I have a small program that > deletes small jpeg files, but I am getting a > permission error, even though I am the owner of the > file and the directory has 777 permission. I have > WIN XP Pro. I have mks toolkit "ls" command. > Login name is "Philip" > > ------------- > > 36 45 border_l_r2_c3.gif is tiny <- printed by program > Traceback (most recent call last): > File "C:\test2.py", line 28, in ? > os.remove(d) # delete the tiny files > OSError: [Errno 13] Permission denied: 'border_l_r2_c3.gif' > > C:\>ls -ld . border_l_r2_c3.gif > drwxrwsrwx 1 Philip None 0 Oct 2 23:40 . > -rwxrwxrwa 1 Philip None 398 Oct 2 22:42 border_l_r2_c3.gif > > Are you sure that the unix-style permission reported by ls are reflecting the true permissions (and read only attribute) on the file. We use Cygwin at work, at the permissions reported by ls, etc. are meaningless with our installation (though that need not be the case with Cygwin). From the commandline I think you can check/set this with attrib.exe, if a bunch need to be checked/changed.
- Previous message (by thread): newbie permission problem
- Next message (by thread): newbie permission problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list