« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/crawl-local.js4
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
         }
       })