From 925b1ff4b419b76a5fda29cc1f625317af466f31 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Mon, 28 Jul 2025 18:23:00 -0400 Subject: [PATCH] dev: add fs.written event Unlike fs.write, fs.written is only emitted after the contents of the fily have been fully streamed and comitted to the delegate storage. --- src/backend/src/filesystem/ll_operations/ll_write.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/src/filesystem/ll_operations/ll_write.js b/src/backend/src/filesystem/ll_operations/ll_write.js index bfeaf96fc..b838c5d1e 100644 --- a/src/backend/src/filesystem/ll_operations/ll_write.js +++ b/src/backend/src/filesystem/ll_operations/ll_write.js @@ -217,6 +217,10 @@ class LLOWrite extends LLWriteBase { await entryOp.awaitDone(); this.log.debug('[owrite] finished creating fsentry', { uid }) resourceService.free(uid); + svc_event.emit('fs.written.file', { + node, + context: this.context, + }); })(); state_upload.post_insert({