Skip to content

Commit 925b1ff

Browse files
committed
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.
1 parent f2a29d5 commit 925b1ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/src/filesystem/ll_operations/ll_write.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ class LLOWrite extends LLWriteBase {
217217
await entryOp.awaitDone();
218218
this.log.debug('[owrite] finished creating fsentry', { uid })
219219
resourceService.free(uid);
220+
svc_event.emit('fs.written.file', {
221+
node,
222+
context: this.context,
223+
});
220224
})();
221225

222226
state_upload.post_insert({

0 commit comments

Comments
 (0)