Home

cstewart913@gmail.com wrote:
> I've been searching to find a way to force this delete to work even if
> the directory isn't empty. I've had no luck thus far. Anyone know
> what that would be?

Answering your immediate question: you can't force os.removedirs to
delete non-empty dirs.
But shutil.rmtree(path, ignore_errors=True) does what you want.

HTH, Marc

previous
next

Re: Car-ac-systems
Re: Xah's Edu Corner: Under the spell of Leibniz's dream
RE: Mysqldb printing sql and params ... NEVER MIND
Re: concise code (beginner)
Re: Problem with references
Rodzic Po Ludzku
Fundacja Avalon
Kidprotect
Krwinka
Dzieci Niczyje