diff --git a/native.ts b/native.ts index 3fe3839..210f5cf 100644 --- a/native.ts +++ b/native.ts @@ -41,6 +41,7 @@ export async function getPluginMeta(_, path: string): Promise { } export function deleteFolder(_, path: string) { + if(path.match(/\.\./g).length > 1) return; rmSync(path, { recursive: true, force: true }); }