Oct 25
Jul 18
How to remove a non-empty directory tree
Linux, Mac, Python No Comments »simple…i know, but you’d be surprised how many ppl don’t know this.
Terminal:
$ rm -rf directory
Python:
>>> shutil.rmtree("/some/dir")
can definitely come in handy




