MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / applyEntryToFiles

Function applyEntryToFiles

scripts/validate-markdown-examples.ts:181–190  ·  view source on GitHub ↗
(currentDir: string)

Source from the content-addressed store, hash-verified

179
180const applyEntryToFiles =
181 (currentDir: string) =>
182 (entry: {
183 readonly name: string;
184 readonly isDirectory: () => boolean;
185 readonly isFile: () => boolean;
186 }) =>
187 (currentFiles: readonly string[]) => {
188 const processor = processDirectoryEntry(currentDir, currentFiles);
189 return processor(entry);
190 };
191
192const checkIsDirectory = (fullPath: string) =>
193 pipe(

Callers 1

flatMapEntryProcessorFunction · 0.85

Calls 1

processDirectoryEntryFunction · 0.85

Tested by

no test coverage detected