Hey, fellows

I'm writing a simple hybrid application with NW.js, it allows users to 
download great photos, a progress bar will appear while downloading, its 
reading is controlled by:
   
   var filePath = "/tmp/foo.log" // another process is now writing to it.
   var stats = fs.statSync(filePath);
  var fileSizeInBytes = stats["size"];

*fileSizeInBytes* in the above snippet but it's stale unless I press F5 
button, is there any workarounds or solutions?

Thanks in advance.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/7f43e7ee-cf21-413c-a328-8697d9507f42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to