(path: string)
| 2665 | } |
| 2666 | |
| 2667 | private requireTaskFile(path: string): TFile { |
| 2668 | const file = this.plugin.app.vault.getAbstractFileByPath(path); |
| 2669 | if (!(file instanceof TFile)) { |
| 2670 | throw new TaskNotesApiError("task_file_not_found", `Cannot find task file: ${path}`, { |
| 2671 | status: 404, |
| 2672 | details: { path }, |
| 2673 | }); |
| 2674 | } |
| 2675 | return file; |
| 2676 | } |
| 2677 | |
| 2678 | private normalizeTaskPath(path: string): string { |
| 2679 | if (typeof path !== "string" || path.trim().length === 0) { |
no test coverage detected