mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-09 20:39:14 +02:00
small change to only-gzip.js to remove warning (#449)
This commit is contained in:
parent
b5d0ea56d2
commit
d91ed0c661
@ -14,7 +14,7 @@ fs.readdir(directory, (err, files) => {
|
||||
|
||||
if (stats.isDirectory()) {
|
||||
// If it's a directory, call rmdir after deleting its contents
|
||||
fs.rmdir(filePath, { recursive: true }, (err) => {
|
||||
fs.rm(filePath, { recursive: true }, (err) => {
|
||||
if (err) throw err;
|
||||
console.log(`Removed directory: ${filePath}`);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user