don't try to propagate for non-directories
This commit is contained in:
parent
edfd9d3f92
commit
831836d5f6
|
@ -1346,9 +1346,10 @@ class Uploader(QueueMixin):
|
||||||
NOTIFIED_OBJECT_DISAPPEARED.log(path=fp)
|
NOTIFIED_OBJECT_DISAPPEARED.log(path=fp)
|
||||||
self._count('objects_disappeared')
|
self._count('objects_disappeared')
|
||||||
|
|
||||||
with PROPAGATE_DIRECTORY_DELETION():
|
if pathinfo.isdir:
|
||||||
for localpath in self._db.get_direct_children(relpath_u):
|
with PROPAGATE_DIRECTORY_DELETION():
|
||||||
self._add_pending(localpath.relpath_u)
|
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)
|
db_entry = self._db.get_db_entry(relpath_u)
|
||||||
if db_entry is None:
|
if db_entry is None:
|
||||||
|
|
Loading…
Reference in New Issue