MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / requireTaskFile

Method requireTaskFile

src/api/TaskNotesAPI.ts:2667–2676  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

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) {

Callers 1

moveTaskMethod · 0.95

Calls 1

getAbstractFileByPathMethod · 0.80

Tested by

no test coverage detected