MCPcopy Create free account
hub / github.com/UNLINEARITY/Obsidian-CodeSpace / isIgnoredPathMatch

Method isIgnoredPathMatch

src/main.ts:458–465  ·  view source on GitHub ↗
(path: string, ignoredPath: string)

Source from the content-addressed store, hash-verified

456 }
457
458 private isIgnoredPathMatch(path: string, ignoredPath: string): boolean {
459 if (path === ignoredPath) {
460 return true;
461 }
462
463 const ignoredFile = this.app.vault.getAbstractFileByPath(ignoredPath);
464 return ignoredFile instanceof TFolder && path.startsWith(`${ignoredPath}/`);
465 }
466
467 private normalizeIgnoredPath(path: string): string {
468 return normalizePath(path).replace(/^\/+/, "").replace(/\/+$/, "");

Callers 1

isIgnoredFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected