You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be an issue copying a directory over another directory using clobber mode. I am finding that intermittently the completion callback is never triggered.
I did a little digging and saw that the "running" count becomes negative in my case.
I think the issue is in the onFile function here:
if(clobber){rmFile(target,function(){copyFile(file,target);});}if(modified){varstat=dereference ? fs.stat : fs.lstat;stat(target,function(err,stats){//if souce modified time greater to target modified time copy fileif(file.mtime.getTime()>stats.mtime.getTime())copyFile(file,target);elsereturncb();});}
If clobber is true, there can be two calls to copyFile, eventually causing two calls to cb, resulting in the started/finished/running counts getting out of sync. I think this is related to this change: 85cd50a
Thanks
The text was updated successfully, but these errors were encountered:
There seems to be an issue copying a directory over another directory using clobber mode. I am finding that intermittently the completion callback is never triggered.
I did a little digging and saw that the "running" count becomes negative in my case.
I think the issue is in the onFile function here:
If clobber is true, there can be two calls to copyFile, eventually causing two calls to cb, resulting in the started/finished/running counts getting out of sync. I think this is related to this change:
85cd50a
Thanks
The text was updated successfully, but these errors were encountered: