do not remove over destination folder
@@ -175,7 +175,7 @@ class FileCopier(object):
if not os.path.exists(abs_path):
base_path = os.path.dirname(dst_link)
os.remove(dst_link)
- while True:
+ while base_path.startswith(dst):
try: # Take advantage that os.rmdir does not delete non-empty dirs
os.rmdir(base_path)
except OSError:
