MCPcopy
hub / github.com/callumalpass/tasknotes / getAbstractFileByPath

Method getAbstractFileByPath

tests/__mocks__/obsidian.ts:307–313  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

305 }
306
307 getAbstractFileByPath(path: string): TAbstractFile | null {
308 const normalizedPath = mockFileSystem['normalizePath'](path);
309 if (mockFileSystem.exists(normalizedPath)) {
310 return new TFile(normalizedPath);
311 }
312 return null;
313 }
314
315 getFiles(): TFile[] {
316 return mockFileSystem.getFiles().map(file => new TFile(file.path));

Callers 15

insertTaskNoteLinkMethod · 0.80
buildMenuMethod · 0.80
assignTaskAsSubtaskMethod · 0.80
createTaskFromEventMethod · 0.80
getMarkdownLinkTextMethod · 0.80
buildActionsListMethod · 0.80
refreshTaskDataMethod · 0.80
openTaskNoteMethod · 0.80
initializeSubtasksMethod · 0.80

Calls 1

existsMethod · 0.80

Tested by 7

readVaultFileFunction · 0.64
openViewFunction · 0.64
openFileByPathFunction · 0.64
writeVaultFileFunction · 0.64
openBaseFileFunction · 0.64
readTaskDatesFunction · 0.64