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

Method normalizeIgnoredFiles

src/main.ts:471–482  ·  view source on GitHub ↗
(paths: string[] | undefined)

Source from the content-addressed store, hash-verified

469 }
470
471 private normalizeIgnoredFiles(paths: string[] | undefined): string[] {
472 if (!Array.isArray(paths)) {
473 return [];
474 }
475
476 return Array.from(new Set(
477 paths
478 .filter((path): path is string => typeof path === "string")
479 .map((path) => this.normalizeIgnoredPath(path))
480 .filter(Boolean)
481 )).sort((a, b) => a.localeCompare(b));
482 }
483
484 private async persistIgnoredFiles(): Promise<void> {
485 await this.saveData(this.settings);

Callers 5

loadSettingsMethod · 0.95
ignoreFileMethod · 0.95
pruneIgnoredFilesMethod · 0.95

Calls 1

normalizeIgnoredPathMethod · 0.95

Tested by

no test coverage detected