mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 10:14:03 +00:00
10 lines
161 B
JavaScript
10 lines
161 B
JavaScript
const fs = require("fs");
|
|
|
|
const path = "./data/test";
|
|
|
|
if (fs.existsSync(path)) {
|
|
fs.rmSync(path, {
|
|
recursive: true,
|
|
force: true,
|
|
});
|
|
}
|