From 1af1fd94792a09125587af7ed412a3c8a02c59d5 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 7 May 2020 17:58:50 +0000 Subject: [PATCH] Fixed error with isDirectory in file provider --- src/app/files/fileProvider.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/files/fileProvider.js b/src/app/files/fileProvider.js index 753e3f64cf..ffe14e344e 100644 --- a/src/app/files/fileProvider.js +++ b/src/app/files/fileProvider.js @@ -139,8 +139,9 @@ class FileProvider { } isDirectory (path) { - path = this.removePrefix(path) - return window.remixFileSystem.statSync(path).isDirectory() + const unprefixedpath = this.removePrefix(path) + + return path === this.type ? true : window.remixFileSystem.statSync(unprefixedpath).isDirectory() } isFile (path) {