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

Function parseExcludedFolders

src/utils/pathExclusions.ts:5–21  ·  view source on GitHub ↗
(
	excludedFolders: string | string[] | null | undefined
)

Source from the content-addressed store, hash-verified

3}
4
5export function parseExcludedFolders(
6 excludedFolders: string | string[] | null | undefined
7): string[] {
8 const folders = Array.isArray(excludedFolders)
9 ? excludedFolders
10 : typeof excludedFolders === "string"
11 ? excludedFolders.split(",")
12 : [];
13
14 return Array.from(
15 new Set(
16 folders
17 .map((folder) => normalizeVaultPath(folder.trim()))
18 .filter((folder) => folder.length > 0)
19 )
20 );
21}
22
23export function isPathInExcludedFolder(path: string, excludedFolders: readonly string[]): boolean {
24 const normalizedPath = normalizeVaultPath(path);

Callers 7

constructorMethod · 0.90
updateConfigMethod · 0.90
constructorMethod · 0.90
updateConfigMethod · 0.90
runFunction · 0.90

Calls 1

normalizeVaultPathFunction · 0.70

Tested by

no test coverage detected