From 3de61fb180e035103fb09a226973f47bc4a6ad49 Mon Sep 17 00:00:00 2001 From: Rafal Lewczuk Date: Thu, 3 May 2012 01:09:56 +0200 Subject: [PATCH] Fix: file module does not remove dangling symlinks --- library/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/file b/library/file index 3931f1ec3b..039f3bb4c8 100755 --- a/library/file +++ b/library/file @@ -290,7 +290,7 @@ def rmtree_error(func, path, exc_info): # go... prev_state = 'absent' -if os.path.exists(path): +if os.path.lexists(path): if os.path.islink(path): prev_state = 'link' elif os.path.isfile(path):