mirror of
https://github.com/wah-su/mstickers.git
synced 2025-04-05 15:54:36 +00:00
deletion of output folder on exit from watch
This commit is contained in:
parent
240396b506
commit
c6386bf11c
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ function onExit() {
|
|||
log("INFO", `Deleted "index.html" file`);
|
||||
|
||||
if (fs.existsSync(OutPath) && OutPath != ParPath) {
|
||||
fs.rmdirSync(`${OutPath}`, { recursive: true });
|
||||
log("INFO", `Deleted output folder`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue