You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
@@ -236,6 +236,10 @@ export class WorkerApi {
|
|||||||
const folderName = removeReservedWords(basename(path));
|
const folderName = removeReservedWords(basename(path));
|
||||||
|
|
||||||
let handle: FileSystemDirectoryHandle;
|
let handle: FileSystemDirectoryHandle;
|
||||||
|
if (!parent) {
|
||||||
|
logger.debug('Parent not found for path', path);
|
||||||
|
handle = null;
|
||||||
|
} else {
|
||||||
try {
|
try {
|
||||||
handle = await parent.getDirectoryHandle(folderName, { create });
|
handle = await parent.getDirectoryHandle(folderName, { create });
|
||||||
this.directoryHandleCache_.set(path, handle);
|
this.directoryHandleCache_.set(path, handle);
|
||||||
@@ -246,6 +250,7 @@ export class WorkerApi {
|
|||||||
|
|
||||||
handle = null;
|
handle = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user