permissions removing a directory?

G. Willoughby thecalm at NOSPAM.btinternet.com
Sun Oct 7 10:18:11 EDT 2001


I want to remove a directory but i keep getting this error:

OSError: [Errno 13] Permission denied: <path>

heres the code:

[snip]

self.workingDirectory=self.directory.get()
self.thumbnailDirectory=os.path.join(self.workingDirectory, "thumbnails")
if os.path.isdir(self.thumbnailDirectory):
    os.rmdir(self.thumbnailDirectory)

[/snip]

any ideas???

ta,

G. Willoughby





More information about the Python-list mailing list