summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-04-24 06:18:51 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-04-24 06:18:51 +0000
commitf4da6ca2f3034ae3d5cd08062bb5d964f63789af (patch)
treecef60076a6c7fc3a68a326ab23d8c0a892e3b828
parentb6d8d7c88405ce1ede389ab01820c4c0dac9aee4 (diff)
downloadrdiff-backup-f4da6ca2f3034ae3d5cd08062bb5d964f63789af.tar.gz
Added existence check in diryield in case deleted in meantime
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@319 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/rdiff_backup/selection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/selection.py b/rdiff-backup/rdiff_backup/selection.py
index 1dfaf5d..0fcc657 100644
--- a/rdiff-backup/rdiff_backup/selection.py
+++ b/rdiff-backup/rdiff_backup/selection.py
@@ -118,7 +118,7 @@ class Select:
for filename in self.listdir(rpath):
new_rpath = robust.check_common_error(error_handler,
rpath.append, (filename,))
- if new_rpath:
+ if new_rpath and new_rpath.lstat():
s = sel_func(new_rpath)
if s == 1: yield (new_rpath, 0)
elif s == 2 and new_rpath.isdir(): yield (new_rpath, 1)