Commit f5718006 authored by bescoto's avatar bescoto

Added existence check in diryield in case deleted in meantime


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@319 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent d59a4bb8
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment