Remove archive existence check when restoring personal files

This commit is contained in:
Manuel Thalmann 2023-08-05 03:03:47 +02:00
parent 4f1d8ab214
commit d4a64e8e71

View file

@ -25,9 +25,6 @@ function Restore-PersonalFiles([Context] $context) {
foreach ($candidate in Get-BackupCandidates) {
$archivePath = $context.FileArchivePath($candidate[0]);
if (Test-Path -PathType Leaf $archivePath) {
$context.Restore($archivePath, $candidate[1]);
}
}
}