Fixed error with isDirectory in file provider

pull/4/head
ioedeveloper 5 years ago
parent 4cc3802d29
commit 210671fb27
  1. 5
      src/app/files/fileProvider.js

@ -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) {

Loading…
Cancel
Save