MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / safeReadDir

Function safeReadDir

packages/node/src/dev/hotStateReload.ts:204–210  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

202}
203
204function safeReadDir(dir: string): readonly Dirent[] {
205 try {
206 return readdirSync(dir, { withFileTypes: true });
207 } catch {
208 return Object.freeze([]);
209 }
210}
211
212function collectWatchDirectories(root: string): readonly string[] {
213 const out: string[] = [];

Callers 1

collectWatchDirectoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected