Skip to content

Commit

Permalink
Added check for backup existence
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanlynn committed Aug 31, 2024
1 parent 0d6cd83 commit b4b9437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BackupFiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static (string Hash, bool IsNew) BackupFileNoUpdate(string Path, string B
if (metas.Length == 2) {
long lastObtained = long.Parse(metas[0]);
string lastHash = metas[1];
if (lastModifiedTicks <= lastObtained)
if (lastModifiedTicks <= lastObtained && File.Exists(System.IO.Path.Combine(BackupDir, lastHash)))
return (lastHash, false);
}
}
Expand Down

0 comments on commit b4b9437

Please sign in to comment.