Peace of code, allow you to wait for a long process such as image file resizing
var waitforfile = require('node-fs-synchronise').waitforfile;
waitforfile('./static/cache/file.jpg', 200, function(stat){
// doing your job
});
- If you can REALLY not synchronize file process creation, you can use it ?
Node-fs-synchronize look if file exist and if file is not growing for a while
- add timeout stuff
- add time function