aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Bishop <mbtyke@gmail.com>2013-09-25 22:46:54 -0400
committerJukka Jylänki <jujjyl@gmail.com>2014-04-29 14:57:51 +0300
commitfa9b6011557011c2e65963ab15a1856d33d442b9 (patch)
tree0597c77ad8cd152c7a5aa3a38235e55037094134
parent288652f0fe673fb218f5ff710f00304e25b87026 (diff)
Added support for file tracking being used to track when
a file has been written to.
-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) {