From fa9b6011557011c2e65963ab15a1856d33d442b9 Mon Sep 17 00:00:00 2001 From: "Michael J. Bishop" Date: Wed, 25 Sep 2013 22:46:54 -0400 Subject: Added support for file tracking being used to track when a file has been written to. --- src/library_fs.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/library_fs.js') 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) { -- cgit v1.2.3-18-g5258