MCPcopy Create free account
hub / github.com/CatMuse/HiNote / getExportPath

Method getExportPath

src/services/export/ExportFileWriter.ts:21–32  ·  view source on GitHub ↗
(fileName: string, exportPath: string)

Source from the content-addressed store, hash-verified

19 }
20
21 private async getExportPath(fileName: string, exportPath: string): Promise<string> {
22 if (!exportPath) {
23 return fileName;
24 }
25
26 const folderPath = this.app.vault.getAbstractFileByPath(exportPath);
27 if (!folderPath) {
28 await this.app.vault.createFolder(exportPath);
29 }
30
31 return `${exportPath}/${fileName}`;
32 }
33}

Callers 1

createMarkdownFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected