MCPcopy Index your code
hub / github.com/QwikDev/qwik / removeDir

Function removeDir

starters/dev-server.ts:263–278  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

261}
262
263function removeDir(dir: string) {
264 try {
265 const items = readdirSync(dir);
266 const itemPaths = items.map((i) => join(dir, i));
267 itemPaths.forEach((itemPath) => {
268 if (statSync(itemPath).isDirectory()) {
269 removeDir(itemPath);
270 } else {
271 unlinkSync(itemPath);
272 }
273 });
274 rmSync(dir);
275 } catch (e) {
276 /**/
277 }
278}
279
280async function cityApp(
281 req: Request,

Callers 1

buildAppFunction · 0.85

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…