mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-11 06:43:54 +00:00
not going to get processed any other way on fsevents
This commit is contained in:
parent
da0bbd6bba
commit
17540c78f3
@ -546,6 +546,13 @@ NOTIFIED_OBJECT_DISAPPEARED = MessageType(
|
||||
u"A path which generated a notification was not found on the filesystem. This is normal.",
|
||||
)
|
||||
|
||||
PROPAGATE_DIRECTORY_DELETION = ActionType(
|
||||
u"magic-folder:propagate-directory-deletion",
|
||||
[],
|
||||
[],
|
||||
u"Children of a deleted directory are being queued for upload processing.",
|
||||
)
|
||||
|
||||
NO_DATABASE_ENTRY = MessageType(
|
||||
u"magic-folder:no-database-entry",
|
||||
[],
|
||||
@ -1339,6 +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)
|
||||
|
||||
db_entry = self._db.get_db_entry(relpath_u)
|
||||
if db_entry is None:
|
||||
NO_DATABASE_ENTRY.log()
|
||||
|
Loading…
x
Reference in New Issue
Block a user