fix(commander) fillJSON: add push

This commit is contained in:
coderaiser 2013-11-29 14:53:18 +00:00
parent 9cc4b2b938
commit 41e124ad4c

View file

@ -129,7 +129,7 @@
};
var lName, lStats, lMode, lIsDir;
for (i = 1; i < n; i++ ) {
for (i = 0; i < n; i++ ) {
/* Переводим права доступа в 8-ричную систему */
lName = p.files[i];
lStats = p.stats[lName];
@ -148,7 +148,7 @@
'mode' : lMode
};
lJSON[i] = lJSONFile;
lJSON.push(lJSONFile);
}
Util.exec(p.callback, null, lJSON);