diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/crawl-local.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crawl-local.js b/src/crawl-local.js index 4c510a1..cf5db87 100755 --- a/src/crawl-local.js +++ b/src/crawl-local.js @@ -20,11 +20,11 @@ function crawl(dirPath) { return stat(itemPath).then(stats => { if (stats.isDirectory()) { return crawl(itemPath).then(contents => { - const group = [item, contents] + const group = {name: item, items: contents} return group }) } else if (stats.isFile()) { - const track = [item, itemPath] + const track = {name: item, downloaderArg: itemPath} return track } }) |