diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-04-24 06:18:51 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-04-24 06:18:51 +0000 |
commit | f4da6ca2f3034ae3d5cd08062bb5d964f63789af (patch) | |
tree | cef60076a6c7fc3a68a326ab23d8c0a892e3b828 /rdiff-backup/rdiff_backup/selection.py | |
parent | b6d8d7c88405ce1ede389ab01820c4c0dac9aee4 (diff) | |
download | rdiff-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
Diffstat (limited to 'rdiff-backup/rdiff_backup/selection.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/selection.py | 2 |
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) |