diff --git a/lib/server/commander.js b/lib/server/commander.js index 21c826bb..e57f5517 100644 --- a/lib/server/commander.js +++ b/lib/server/commander.js @@ -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++ ) {