MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / isPathInExcludedFolder

Function isPathInExcludedFolder

src/utils/pathExclusions.ts:23–28  ·  view source on GitHub ↗
(path: string, excludedFolders: readonly string[])

Source from the content-addressed store, hash-verified

21}
22
23export 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}

Callers 4

isValidFileMethod · 0.90
isValidFileMethod · 0.90
runFunction · 0.90

Calls 1

normalizeVaultPathFunction · 0.70

Tested by

no test coverage detected