From 2b7828e118087b2411e90dc07b1719472c1e2231 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 3931f1ec3b9..039f3bb4c88 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):