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
in packge/connectors/nodejs/fillmanager.js file
in some case
when readfolder run at if($index>=loopInfo.total) it will not response all the files in file server'folder
because the async fs.stat function does't finnish read file info inorder
for fix the bug
use the follow code replace
loopInfo[$index] = true;
if(isAllFinish(loopInfo)){
callback(loopInfo.results)
}
in packge/connectors/nodejs/fillmanager.js file
in some case
when readfolder run at if($index>=loopInfo.total) it will not response all the files in file server'folder
because the async fs.stat function does't finnish read file info inorder
for fix the bug
use the follow code replace
loopInfo[$index] = true;
if(isAllFinish(loopInfo)){
callback(loopInfo.results)
}
function isAllFinish(l){
for(var i=0;i<l.total;i++){
if(!l.status[i])
return false;
}
return true;
}
or you can use Promise fix the Bug
The text was updated successfully, but these errors were encountered: