mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
cfa935d8fd
commit
27c10db407
1 changed files with 12 additions and 12 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue