MCPcopy Create free account
hub / github.com/remix-run/react-router / getDirectoryFilesRecursive

Function getDirectoryFilesRecursive

packages/create-react-router/utils.ts:310–318  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

308export const IGNORED_TEMPLATE_DIRECTORIES = [".git", "node_modules"];
309
310export async function getDirectoryFilesRecursive(dir: string) {
311 return (await readdir(dir, { recursive: true })).filter((file) => {
312 let parts = file.split(path.sep);
313
314 return (
315 parts.length <= 1 || !IGNORED_TEMPLATE_DIRECTORIES.includes(parts[0])
316 );
317 });
318}

Callers 1

copyTempDirToAppDirStepFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected