A
Andy Leszczynski
How remove directories with the content in the platform independent way?
Is the API for that?
Thx, A.
Is the API for that?
Thx, A.
How remove directories with the content in the platform independent way?
Is the API for that?
Thx, A.
It is not clear if rmdir would remove the non-empty dir ...James said:Look at the os and os.path modules.
http://docs.python.org/lib/module-os.html
http://docs.python.org/lib/module-os.path.html
never min, I found this in that docAndy said:It is not clear if rmdir would remove the non-empty dir ...
Thanks, this is what I was looking for.Jason said:There's also the shutil module, which is platform independant.
http://docs.python.org/lib/module-shutil.html
...see the rmtree function
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.