mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
fix:修复备份恢复完成后可能无权限清理临时目录 (#2247)
This commit is contained in:
parent
f260b5fa37
commit
2355f80d31
@ -131,6 +131,7 @@ class BackupManager {
|
||||
Logger.log('[backup] step 4: clean up temp directory')
|
||||
|
||||
// 清理临时目录
|
||||
await this.setWritableRecursive(this.tempDir)
|
||||
await fs.remove(this.tempDir)
|
||||
|
||||
Logger.log('[backup] step 5: Restore completed successfully')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user