mirror of https://github.com/tycrek/ass
parent
09fe844d45
commit
1e2332918b
@ -0,0 +1,16 @@
|
||||
import { TLog } from '@tycrek/log';
|
||||
import fs from 'fs-extra';
|
||||
import path from 'path';
|
||||
|
||||
const log = new TLog();
|
||||
const uploadsPath = path.join(process.cwd(), 'uploads/');
|
||||
const dataPath = path.join(process.cwd(), 'data.json');
|
||||
|
||||
if (fs.existsSync(uploadsPath)) {
|
||||
fs.removeSync(uploadsPath);
|
||||
log.success('Deleted', uploadsPath);
|
||||
}
|
||||
if (fs.existsSync(dataPath)) {
|
||||
fs.removeSync(dataPath);
|
||||
log.success('Deleted', dataPath);
|
||||
}
|
Loading…
Reference in new issue