LouisLam
3 years ago
2 changed files with 14 additions and 6 deletions
@ -1,5 +1,9 @@ |
|||
const fs = require("fs"); |
|||
|
|||
fs.rmdirSync("./data/test-chrome-profile", { |
|||
const path = "./data/test-chrome-profile"; |
|||
|
|||
if (fs.existsSync(path)) { |
|||
fs.rmdirSync(path, { |
|||
recursive: true, |
|||
}); |
|||
} |
|||
|
@ -1,5 +1,9 @@ |
|||
const fs = require("fs"); |
|||
|
|||
fs.rmdirSync("./data/test", { |
|||
const path = "./data/test"; |
|||
|
|||
if (fs.existsSync(path)) { |
|||
fs.rmdirSync(path, { |
|||
recursive: true, |
|||
}); |
|||
} |
|||
|
Loading…
Reference in new issue