Skip to content

Commit

Permalink
修复了自动清除备份文件后,无法继续备份的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack251970 committed Jun 6, 2023
1 parent c041082 commit 2add014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ContextMenuManager/Methods/BackupHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ private void CheckDeprecatedBackup()

}
// 如果设备目录为空且不为本机目录,则删除该设备目录
if ((Directory.GetFiles(deviceDir).Length == 0) && (deviceDir != AppConfig.ComputerHostName))
string device = Path.GetFileName(deviceDir);
if ((Directory.GetFiles(deviceDir).Length == 0) && (device != AppConfig.ComputerHostName))
{
Directory.Delete(deviceDir);
}
Expand Down

0 comments on commit 2add014

Please sign in to comment.