First commit
This commit is contained in:
32
clear.js
Normal file
32
clear.js
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
|
||||
Copyright (c) 2020, 2023, The Unified Company.
|
||||
|
||||
This code is part of Unify.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the ESA Software Community License - Strong Copyleft,
|
||||
|
||||
https://unifyjs.org
|
||||
|
||||
*/
|
||||
|
||||
|
||||
import fs from "fs";
|
||||
|
||||
if( fs.existsSync( "./framework/cache/platforms" ) ) {
|
||||
|
||||
fs.rmSync("./framework/cache/platforms", { recursive: true });
|
||||
|
||||
}
|
||||
|
||||
fs.mkdirSync("./framework/cache/platforms");
|
||||
|
||||
|
||||
if( fs.existsSync( "./framework/cache/server" ) ) {
|
||||
|
||||
fs.rmSync("./framework/cache/server", { recursive: true });
|
||||
|
||||
}
|
||||
|
||||
fs.mkdirSync("./framework/cache/server");
|
||||
Reference in New Issue
Block a user