Commit 762075d5 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] sync: did not work with duniter-ui on a brand new install

parent e09f4502
......@@ -61,7 +61,10 @@ class QioFileSystem implements FileSystem {
return this.qio.remove(file)
}
async fsList(dir: string) {
async fsList(dir: string): Promise<string[]> {
if (!(await this.qio.exists(dir))) {
return []
}
return this.qio.list(dir)
}
......
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