mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(commander) fillJSON
This commit is contained in:
parent
062114fc80
commit
3f9afe5aa1
1 changed files with 5 additions and 7 deletions
|
|
@ -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++ ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue