diff --git a/src/note/noteExportController.ts b/src/note/noteExportController.ts index 87b09cf..678d46e 100644 --- a/src/note/noteExportController.ts +++ b/src/note/noteExportController.ts @@ -198,7 +198,7 @@ class NoteExport extends AddonBase { } this._exportPath = this._Addon.NoteUtils.formatPath( - Zotero.File.pathToFile(filepath).parent.path + "/attachments" + Zotero.File.pathToFile(filepath).path + "/attachments" ); notes = notes.filter((n) => n && n.getNote); @@ -295,7 +295,7 @@ class NoteExport extends AddonBase { async syncNotesToMDFiles(notes: Zotero.Item[], filepath: string) { this._exportPath = this._Addon.NoteUtils.formatPath( - Zotero.File.pathToFile(filepath).parent.path + "/attachments" + Zotero.File.pathToFile(filepath).path + "/attachments" ); // Export every linked note as a markdown file