the horrors
This commit is contained in:
parent
56ae3338d8
commit
8eca3d5ee5
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ export async function getPluginMeta(_, path: string): Promise<any> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function deleteFolder(_, path: string) {
|
export function deleteFolder(_, path: string) {
|
||||||
|
if(path.match(/\.\./g).length > 1) return;
|
||||||
rmSync(path, { recursive: true, force: true });
|
rmSync(path, { recursive: true, force: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue