(fileOrPath: TFile | TFolder | string)
| 342 | } |
| 343 | |
| 344 | async ignoreFile(fileOrPath: TFile | TFolder | string): Promise<boolean> { |
| 345 | const normalizedPath = this.normalizeIgnoredPath(typeof fileOrPath === "string" ? fileOrPath : fileOrPath.path); |
| 346 | if (!normalizedPath || this.settings.ignoredFiles.includes(normalizedPath)) { |
| 347 | return false; |
| 348 | } |
| 349 | |
| 350 | this.settings.ignoredFiles = this.normalizeIgnoredFiles([...this.settings.ignoredFiles, normalizedPath]); |
| 351 | await this.persistIgnoredFiles(); |
| 352 | return true; |
| 353 | } |
| 354 | |
| 355 | async unignoreFile(fileOrPath: TFile | TFolder | string): Promise<boolean> { |
| 356 | const normalizedPath = this.normalizeIgnoredPath(typeof fileOrPath === "string" ? fileOrPath : fileOrPath.path); |
no test coverage detected