mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(commander) getAllStats: do not get response when folder is empty
This commit is contained in:
parent
ddfccd54fb
commit
3361603a70
1 changed files with 2 additions and 2 deletions
|
|
@ -41,11 +41,11 @@
|
|||
*/
|
||||
function getAllStats(path, names, callback) {
|
||||
var length = names.length,
|
||||
funcs = {},
|
||||
funcs = names.length ? {} : [],
|
||||
dir = format.addSlashToEnd(path);
|
||||
|
||||
if (!length)
|
||||
funcs.exec = Util.exec.ret;
|
||||
funcs.push(Util.exec);
|
||||
else
|
||||
names.forEach(function(name) {
|
||||
var path = dir + name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue