(fileOrPath: TFile | TFolder | string)
| 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); |
no test coverage detected