ensure folder exists before reading it

pull/5370/head
yann300 4 years ago
parent 6a6807591f
commit 4f5aa6b0f1
  1. 4
      apps/remix-ide/src/app/tabs/testTab/testTab.js

@ -44,9 +44,9 @@ class TestTabLogic {
const provider = this.fileManager.fileProviderOf(this.currentPath)
if (!provider) return cb(null, [])
const tests = []
let files
let files = []
try {
files = await this.fileManager.readdir(this.currentPath)
if (await this.fileManager.exists(this.currentPath)) files = await this.fileManager.readdir(this.currentPath)
} catch (e) {
cb(e.message)
}

Loading…
Cancel
Save