You've already forked joplin
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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user