What is the easiest way to do the equivalent of rm -rf in python?
From stackoverflow
Josh Gibson
-
import shutil shutil.rmtree("dir-you-want-to-remove")From Josh Gibson -
shutil.rmtree() is right answer, but just look at another useful function - os.walk()
From maxp
0 comments:
Post a Comment