mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🎈 perf: 优化清理文件性能
This commit is contained in:
parent
10ee4155aa
commit
d044916ce2
@ -57,7 +57,6 @@ async function deleteFolderRecursive(folderPath) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await Promise.allSettled(actions);
|
await Promise.allSettled(actions);
|
||||||
await fs.promises.rmdir(folderPath);
|
|
||||||
return files.length;
|
return files.length;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(error);
|
logger.error(error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user