1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Done MD importer

This commit is contained in:
Laurent Cozic
2018-02-26 18:43:50 +00:00
parent 8f2e5faff3
commit 3cee671f25
3 changed files with 75 additions and 11 deletions

View File

@ -104,7 +104,13 @@ class FsDriverNode extends FsDriverBase {
if (!options) options = {};
if (!('recursive' in options)) options.recursive = false;
let items = await fs.readdir(path);
let items = [];
try {
items = await fs.readdir(path);
} catch (error) {
throw this.fsErrorToJsError_(error);
}
let output = [];
for (let i = 0; i < items.length; i++) {
const item = items[i];