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,6 +1346,7 @@ class Uploader(QueueMixin):
NOTIFIED_OBJECT_DISAPPEARED.log(path=fp)
self._count('objects_disappeared')
if pathinfo.isdir:
with PROPAGATE_DIRECTORY_DELETION():
for localpath in self._db.get_direct_children(relpath_u):
self._add_pending(localpath.relpath_u)