Added countdown timer to loading page — progress bar with sweep ETA
This commit is contained in:
18
scripts/clean.mjs
Normal file
18
scripts/clean.mjs
Normal file
@@ -0,0 +1,18 @@
|
||||
import { rm, access } from 'fs/promises';
|
||||
import { join } from 'path';
|
||||
|
||||
const targets = [
|
||||
'runs/latest.json',
|
||||
'runs/memory',
|
||||
];
|
||||
|
||||
for (const target of targets) {
|
||||
const full = join(process.cwd(), target);
|
||||
try {
|
||||
await access(full);
|
||||
await rm(full, { recursive: true });
|
||||
console.log(`removed: ${target}`);
|
||||
} catch {
|
||||
// not found — skip silently
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user