refactor(commander) fillJSON

This commit is contained in:
coderaiser 2013-11-29 15:54:31 +00:00
parent 062114fc80
commit 3f9afe5aa1

View file

@ -119,14 +119,12 @@
i, n = p.files.length || 0,
/* данные о файлах в формате JSON*/
lJSON = [],
lJSONFile = {},
lDirPath = getDirPath(p.path);
lJSON[0] = {
path : lDirPath,
size : 'dir'
};
lDirPath = getDirPath(p.path),
lJSON = [{
path : lDirPath,
size : 'dir'
}];
var lName, lStats, lMode, lIsDir;
for (i = 0; i < n; i++ ) {