On Sep 23, 12:52 pm, Andris Reinman <[email protected]> wrote:
> What would be the best way to detect a file has been written to disk? Once
> I have passed all the data to a fs.WriteStream, the data is at first
> buffered by node and written to the disk asynchronously. There is no "end"
> or "close" event to listen to (or at least these don't trigger on my system
> (node v0.8.9)) when all bytes are actually written to the disk.

fs.WriteStreams emit a 'close' event when the underlying file
descriptor is closed. Are you sure .end() is being called on the
stream?

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to