Forum: Poser Python Scripting


Subject: Python script that will remove a folder structure within Runtime...?

DarkEdge opened this issue on Jun 18, 2009 ยท 7 posts


adp001 posted Fri, 19 June 2009 at 6:31 AM

Quote -
The python command is a combination of walk , which lists a directory tree but you have to do deletes from the bottom up if you are deleting folders too. Its also not something you can get wrong , a mistake is very very bad .

Sorry, no. You need just:
**
import os
os.removedirs()**

This will delete the path and files/subdirectories in the path.