emptyDir() — astro Function Reference
Architecture documentation for the emptyDir() function in fs.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 5987fea5_08e1_2937_c8a8_852c41dc0a3d["emptyDir()"] ae97098f_05c3_e11f_9a05_46a9f8fa42ea["fs.ts"] 5987fea5_08e1_2937_c8a8_852c41dc0a3d -->|defined in| ae97098f_05c3_e11f_9a05_46a9f8fa42ea 922dadd7_88e6_ef33_18a3_3c6ade008202["removeDir()"] 5987fea5_08e1_2937_c8a8_852c41dc0a3d -->|calls| 922dadd7_88e6_ef33_18a3_3c6ade008202 style 5987fea5_08e1_2937_c8a8_852c41dc0a3d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/internal-helpers/src/fs.ts lines 15–18
export async function emptyDir(dir: PathLike): Promise<void> {
await removeDir(dir);
await fs.mkdir(dir, { recursive: true });
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does emptyDir() do?
emptyDir() is a function in the astro codebase, defined in packages/internal-helpers/src/fs.ts.
Where is emptyDir() defined?
emptyDir() is defined in packages/internal-helpers/src/fs.ts at line 15.
What does emptyDir() call?
emptyDir() calls 1 function(s): removeDir.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free