uptime-kuma/test/prepare-test-server.js

11 lines
186 B
JavaScript
Raw Permalink Normal View History

2021-10-05 09:39:44 +00:00
const fs = require("fs");
2022-03-02 07:48:08 +00:00
const rmSync = require("../extra/fs-rmSync.js");
2021-10-05 09:39:44 +00:00
2021-10-05 12:37:32 +00:00
const path = "./data/test";
if (fs.existsSync(path)) {
2022-03-02 07:48:08 +00:00
rmSync(path, {
2021-10-05 12:37:32 +00:00
recursive: true,
});
}