this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: drop dead code (#257)

authored by

Victor Berchet and committed by
GitHub
d39bff20 db578b71

-21
-21
packages/cloudflare/src/cli/build/utils/read-paths-recursively.ts
··· 1 - import { readdirSync } from "node:fs"; 2 - import { join } from "node:path"; 3 - 4 - /** 5 - * Recursively reads all file paths in a directory. 6 - * 7 - * @param dir Directory to recursively read from. 8 - * @returns Array of all paths for all files in a directory. 9 - */ 10 - export function readPathsRecursively(dir: string): string[] { 11 - try { 12 - const files = readdirSync(dir, { withFileTypes: true }); 13 - 14 - return files.flatMap((file) => { 15 - const filePath = join(dir, file.name); 16 - return file.isDirectory() ? readPathsRecursively(filePath) : filePath; 17 - }); 18 - } catch { 19 - return []; 20 - } 21 - }