From 27c10db4077b410eeda5eb57c82467342940f779 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 8 Apr 2013 10:34:39 -0400 Subject: [PATCH] minor changes --- lib/server/dir.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/server/dir.js b/lib/server/dir.js index 8e4f70da..761aee67 100644 --- a/lib/server/dir.js +++ b/lib/server/dir.js @@ -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;