On Monday, July 1, 2013 6:58:15 PM UTC-4, Mark Hahn wrote:
>
> And one more question.  What is a way in general to guarantee a file has 
> finished writing?  I assume if I run fs.stat it will return with successful 
> data even if it isn't finished writing.  If I know what the file length is 
> then I could make sure the length is correct, but what if I don't know the 
> length?
>
>
I'd wait for the "close" event to make sure that the file has fully 
finished writing.  Rather than the finished event.  It just seems more 
natural to me to catch any errors from the final close call.

Rusty

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to