Commit c759cf72 authored by yann300's avatar yann300

ensure folder exists before reading it

parent fee2e1b2
......@@ -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)
}
......
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