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

All: Various changes to get filesystem target to work on mobile

This commit is contained in:
Laurent Cozic
2018-01-17 21:01:41 +00:00
parent c16ea6b237
commit 9efbf74b6f
6 changed files with 86 additions and 29 deletions

@ -35,7 +35,7 @@ class FsDriverNode {
await time.sleep(1);
continue;
}
throw this.fsErrorToJsError_(error);
throw error;
}
}
@ -51,9 +51,14 @@ class FsDriverNode {
}
async stat(path) {
const s = await fs.stat(path);
s.path = path;
return s;
try {
const s = await fs.stat(path);
s.path = path;
return s;
} catch (error) {
if (error.code == 'ENOENT') return null;
throw error;
}
}
async setTimestamp(path, timestampDate) {