aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_fs.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library_fs.js b/src/library_fs.js
index 6573fd17..e5c17506 100644
--- a/src/library_fs.js
+++ b/src/library_fs.js
@@ -1062,6 +1062,9 @@ mergeInto(LibraryManager.library, {
}
var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn);
if (!seeking) stream.position += bytesWritten;
+ if (FS.trackingDelegate && stream.path && FS.trackingDelegate['didWriteToFile']) {
+ FS.trackingDelegate['didWriteToFile'](stream.path);
+ }
return bytesWritten;
},
allocate: function(stream, offset, length) {