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

Method pruneIgnoredFiles

src/main.ts:366–378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364 }
365
366 async pruneIgnoredFiles(): Promise<boolean> {
367 const filtered = this.settings.ignoredFiles.filter((path) => {
368 const file = this.app.vault.getAbstractFileByPath(path);
369 return file instanceof TFile || file instanceof TFolder;
370 });
371 if (filtered.length === this.settings.ignoredFiles.length) {
372 return false;
373 }
374
375 this.settings.ignoredFiles = this.normalizeIgnoredFiles(filtered);
376 await this.persistIgnoredFiles();
377 return true;
378 }
379
380 async openIgnoreManager() {
381 await this.pruneIgnoredFiles();

Callers 2

openIgnoreManagerMethod · 0.95
openIgnoredFileMethod · 0.80

Calls 2

normalizeIgnoredFilesMethod · 0.95
persistIgnoredFilesMethod · 0.95

Tested by

no test coverage detected