minor changes

This commit is contained in:
coderaiser 2013-04-08 10:34:39 -04:00
parent cfa935d8fd
commit 27c10db407

View file

@ -4,15 +4,15 @@
if(!global.cloudcmd)
return console.log(
'# dirsize.js' + '\n' +
'# -----------' + '\n' +
'# Module is part of Cloud Commander,' + '\n' +
'# used for getting dir size.' + '\n' +
'# If you wont to see at work' + '\n' +
'# try GET /api/v1/fs/etc?size or' + '\n' +
'# dir.getSize(\'/etc, function(err, size){' + '\n' +
'# });' + '\n' +
'# http://coderaiser.github.com/cloudcmd' + '\n');
'# dir.js' + '\n' +
'# -----------' + '\n' +
'# Module is part of Cloud Commander,' + '\n' +
'# used for getting dir size.' + '\n' +
'# If you wont to see at work' + '\n' +
'# try GET /api/v1/fs/etc?size or' + '\n' +
'# dir.getSize(\'/etc, function(err, size){' + '\n' +
'# });' + '\n' +
'# http://coderaiser.github.com/cloudcmd' + '\n');
var main = global.cloudcmd.main,
fs = main.fs,
@ -30,8 +30,8 @@
}
processDir(pDir, calcSize, function(){
console.log(lTotal);
pCallBack(null, lTotal);
Util.log(pDir + ' -> ' + lTotal);
Util.exec(pCallBack, null, lTotal);
});
};
@ -56,7 +56,7 @@
var p = pParams,
d = p.params,
lStat = p.data,
lPath = d.name;
lPath = d.name;
--lFileCounter;