mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix: 删除所有资源;
This commit is contained in:
parent
071b1f82d8
commit
64c27f0ee6
1 changed files with 3 additions and 1 deletions
|
|
@ -106,7 +106,9 @@ export async function deleteAll() {
|
||||||
false,
|
false,
|
||||||
{ at: true, recallMsg: 100 }
|
{ at: true, recallMsg: 100 }
|
||||||
);
|
);
|
||||||
for (const dir of LocalURI) {
|
// 将 localURI 值迭代删除
|
||||||
|
for (const dir of Object.values(LocalURI)) {
|
||||||
|
logger.debug(`删除文件夹:${dir}`);
|
||||||
if (fs.existsSync(dir)) {
|
if (fs.existsSync(dir)) {
|
||||||
fs.rmSync(dir, { recursive: true });
|
fs.rmSync(dir, { recursive: true });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue