permissions removing a directory?

Robert Amesz reqhye72zux at mailexpire.com
Sun Oct 7 20:22:16 EDT 2001


G. Willoughby wrote:

> 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???

Could be you're trying to remove a non-empty directory.


Robert Amesz



More information about the Python-list mailing list