From 30ea5c433e76ac58b6979ade9611bf82bbabd71f Mon Sep 17 00:00:00 2001 From: = Date: Fri, 12 Apr 2019 23:36:07 +1000 Subject: [PATCH] fix (path): set the path & link of a newly created folder / file --- client/model/files.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/model/files.js b/client/model/files.js index 1873f1a7..136ce722 100644 --- a/client/model/files.js +++ b/client/model/files.js @@ -441,7 +441,7 @@ class FileSystem{ return cache.upsert(cache.FILE_PATH, [currentShare(), dirname(path)], function(res){ if(!res || !res.results){ res = { - path: dirname(path), + path: path, results: [], access_count: 0, last_access: null, @@ -449,7 +449,7 @@ class FileSystem{ }; } let file = { - path: dirname(path), + path: path, name: basename(path), type: /\/$/.test(path) ? 'directory' : 'file' };