From 1f94c59261b8b45bd9435db17522dfb1147391ec Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sun, 12 Nov 2017 18:12:02 +0100 Subject: [PATCH] Traverse directories --- app/components/directory-listing/template.hbs | 19 ++++++++++++++----- app/services/storage.js | 4 +++- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/app/components/directory-listing/template.hbs b/app/components/directory-listing/template.hbs index 5ed9e06..7a989e4 100644 --- a/app/components/directory-listing/template.hbs +++ b/app/components/directory-listing/template.hbs @@ -1,11 +1,20 @@ \ No newline at end of file diff --git a/app/services/storage.js b/app/services/storage.js index 09fd518..fb5cdf2 100644 --- a/app/services/storage.js +++ b/app/services/storage.js @@ -97,7 +97,9 @@ export default Service.extend({ items.push(EmberObject.create({ name: name, type: type, - size: item['Content-Length'] || null + isFolder: type === 'folder', + size: item['Content-Length'] || null, + path: path + name })); });