]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/blobdiff - cli/actions.js
Send more folder listing details
[perso/Immae/Projets/Nodejs/Surfer.git] / cli / actions.js
index 8a8624e345d3354348c3834ed5b0bdbb818a3869..6f8faea3de72259668c8b0c5eb7f1cff3e72fed3 100644 (file)
@@ -153,9 +153,9 @@ function get(filePath) {
             if (!files || files.entries.length === 0) {
                 console.log('No files on the server. Use %s to upload some.', 'surfer put <file>'.yellow);
             } else {
-                console.log('Files:');
+                console.log('Entries:');
                 files.entries.forEach(function (entry) {
-                    console.log('\t %s', entry);
+                    console.log('\t %s', entry.isDirectory ? entry.filePath + '/' : entry.filePath);
                 });
             }
         } else {