diff --git a/anduril/anduril-remove-files b/anduril/anduril-remove-files index 38746e7..96f3a25 100755 --- a/anduril/anduril-remove-files +++ b/anduril/anduril-remove-files @@ -58,7 +58,7 @@ def recurse(options): for path,dirs,files in os.walk(options.startpath,followlinks=options.symlinks): # do not move files in move folder a second time.. if options.move!="": - if os.path.samefile(options.move, path): + if os.path.exists(options.move) and os.path.samefile(options.move, path): del dirs[:] continue take_action=False