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

Method isIgnoredFile

src/main.ts:332–342  ·  view source on GitHub ↗
(fileOrPath: TFile | TFolder | string)

Source from the content-addressed store, hash-verified

330 }
331
332 isIgnoredFile(fileOrPath: TFile | TFolder | string): boolean {
333 const path = typeof fileOrPath === "string" ? fileOrPath : fileOrPath.path;
334 const normalizedPath = this.normalizeIgnoredPath(path);
335 if (!normalizedPath) {
336 return false;
337 }
338
339 return this.settings.ignoredFiles.some((ignoredPath) =>
340 this.isIgnoredPathMatch(normalizedPath, ignoredPath)
341 );
342 }
343
344 async ignoreFile(fileOrPath: TFile | TFolder | string): Promise<boolean> {
345 const normalizedPath = this.normalizeIgnoredPath(typeof fileOrPath === "string" ? fileOrPath : fileOrPath.path);

Callers 2

renderMethod · 0.80
refreshFileListMethod · 0.80

Calls 2

normalizeIgnoredPathMethod · 0.95
isIgnoredPathMatchMethod · 0.95

Tested by

no test coverage detected