Wednesday, March 5, 2014

It is danger to use Python shutil.rmtree () to remove a symbolic link directory.

It is danger to use Python shutil.rmtree () to remove a symbolic link directory in Windows because the function recursively remove files under a given directory. We should replace it with.

os.system ("rd \"%s\"" % Dir)

1 comment: