don't try to propagate for non-directories

This commit is contained in:
Jean-Paul Calderone 2019-03-06 13:44:19 -05:00
parent edfd9d3f92
commit 831836d5f6
1 changed files with 4 additions and 3 deletions

View File

@ -1346,9 +1346,10 @@ class Uploader(QueueMixin):
NOTIFIED_OBJECT_DISAPPEARED.log(path=fp)
self._count('objects_disappeared')
with PROPAGATE_DIRECTORY_DELETION():
for localpath in self._db.get_direct_children(relpath_u):
self._add_pending(localpath.relpath_u)
if pathinfo.isdir:
with PROPAGATE_DIRECTORY_DELETION():
for localpath in self._db.get_direct_children(relpath_u):
self._add_pending(localpath.relpath_u)
db_entry = self._db.get_db_entry(relpath_u)
if db_entry is None: