(path: string, excludedFolders: readonly string[])
| 21 | } |
| 22 | |
| 23 | export function isPathInExcludedFolder(path: string, excludedFolders: readonly string[]): boolean { |
| 24 | const normalizedPath = normalizeVaultPath(path); |
| 25 | return excludedFolders.some( |
| 26 | (folder) => normalizedPath === folder || normalizedPath.startsWith(`${folder}/`) |
| 27 | ); |
| 28 | } |
no test coverage detected