undefined size changed to 0, if we do not have rights to watch file size

This commit is contained in:
coderaiser 2012-07-02 17:31:41 +03:00
parent 888213beaf
commit dffbbf3b37

View file

@ -427,10 +427,12 @@ CloudServer._readDir=function (pError, pFiles)
try{
lStats=Fs.statSync(RightDir+pFiles[i]);
}catch(err){
console.log(err);
/*
console.log(err);
*/
lStats={
'mode':undefined,
'size':undefined,
'mode':0,
'size':0,
'isDirectory':fReturnFalse
};
}