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

Function taskIsInFolder

src/api/TaskNotesAPI.ts:3312–3316  ·  view source on GitHub ↗
(task: TaskInfo, folder: string)

Source from the content-addressed store, hash-verified

3310}
3311
3312function taskIsInFolder(task: TaskInfo, folder: string): boolean {
3313 const normalizedFolder = normalizePath(folder);
3314 if (!normalizedFolder) return true;
3315 return task.path === normalizedFolder || task.path.startsWith(`${normalizedFolder}/`);
3316}
3317
3318function runtimeQueryGroups(
3319 groupedTasks: Map<string, TaskInfo[]>,

Callers 1

applyRuntimeQueryScopeFunction · 0.85

Calls 1

normalizePathFunction · 0.90

Tested by

no test coverage detected