mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(commander) getDirContent: lRet -> ret
This commit is contained in:
parent
f3e38f6613
commit
3622ccff7a
1 changed files with 8 additions and 8 deletions
|
|
@ -19,18 +19,18 @@
|
|||
|
||||
checkParams = main.checkCallBackParams;
|
||||
|
||||
exports.getDirContent = function(pPath, pCallBack) {
|
||||
var lRet = Util.isString(pPath);
|
||||
exports.getDirContent = function(path, callback) {
|
||||
var ret = Util.isString(path);
|
||||
|
||||
if (lRet)
|
||||
fs.readdir(pPath, Util.call(readDir, {
|
||||
callback: pCallBack,
|
||||
path : pPath
|
||||
if (ret)
|
||||
fs.readdir(path, Util.call(readDir, {
|
||||
callback: callback,
|
||||
path : path
|
||||
}));
|
||||
else
|
||||
Util.exec(pCallBack, "First parameter should be a string");
|
||||
Util.exec(callback, "First parameter should be a string");
|
||||
|
||||
return lRet;
|
||||
return ret;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue