Commit 210671fb authored by ioedeveloper's avatar ioedeveloper

Fixed error with isDirectory in file provider

parent 4cc3802d
...@@ -139,8 +139,9 @@ class FileProvider { ...@@ -139,8 +139,9 @@ class FileProvider {
} }
isDirectory (path) { isDirectory (path) {
path = this.removePrefix(path) const unprefixedpath = this.removePrefix(path)
return window.remixFileSystem.statSync(path).isDirectory()
return path === this.type ? true : window.remixFileSystem.statSync(unprefixedpath).isDirectory()
} }
isFile (path) { isFile (path) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment