permissions removing a directory?

G. Willoughby thecalm at NOSPAM.btinternet.com
Mon Oct 8 07:38:17 EDT 2001


yes i am, is there anyway of deleting a whole directory filled with stuff?

G. Willoughby

"Robert Amesz" <reqhye72zux at mailexpire.com> wrote in message
news:Xns913415E48E29Frcamesz at 127.0.0.1...
> 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