From 5ecd59dcc44a51b4d095589765366543a932d07a Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Sat, 15 Feb 2014 19:57:02 +0200 Subject: [PATCH] bugfix --- anduril/anduril-remove-files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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