1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Desktop: Fixes #4426: Improved handling of empty paths for Joplin Server sync target

This commit is contained in:
Laurent Cozic
2021-02-01 10:48:37 +00:00
parent a419e1eb7c
commit b1b5069a23
6 changed files with 40 additions and 50 deletions

View File

@@ -48,7 +48,7 @@ export default class SyncTargetJoplinServer extends BaseSyncTarget {
const api = new JoplinServerApi(apiOptions);
const driver = new FileApiDriverJoplinServer(api);
const fileApi = new FileApi(() => `root:/${options.directory()}`, driver);
const fileApi = new FileApi(options.directory, driver);
fileApi.setSyncTargetId(this.id());
await fileApi.initialize();
return fileApi;