From afc39b61b771e5c00158df9843e295a410748aad Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 23 May 2018 17:05:20 +0100 Subject: [PATCH] fix: files ls inconsisntency --- src/files/ls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files/ls.js b/src/files/ls.js index 2f5292aaa..ee012dafe 100644 --- a/src/files/ls.js +++ b/src/files/ls.js @@ -8,7 +8,7 @@ const transform = function (res, callback) { callback(null, entries.map((entry) => { return { name: entry.Name, - type: entry.Type, + type: (entry.Type === 0) ? 'file' : 'directory', size: entry.Size, hash: entry.Hash }