(path: string, ignoredPath: string)
| 456 | } |
| 457 | |
| 458 | private isIgnoredPathMatch(path: string, ignoredPath: string): boolean { |
| 459 | if (path === ignoredPath) { |
| 460 | return true; |
| 461 | } |
| 462 | |
| 463 | const ignoredFile = this.app.vault.getAbstractFileByPath(ignoredPath); |
| 464 | return ignoredFile instanceof TFolder && path.startsWith(`${ignoredPath}/`); |
| 465 | } |
| 466 | |
| 467 | private normalizeIgnoredPath(path: string): string { |
| 468 | return normalizePath(path).replace(/^\/+/, "").replace(/\/+$/, ""); |