Skip to content

Commit

Permalink
Fix subdirs not being backed up
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Nov 7, 2024
1 parent 7b107c0 commit fcab8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EasyBackupAvalonia/Helpers/BackupPerformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private void CopyDirectory(FolderFileItem itemBeingCopied, string sourceDirName,
}
if (!_directoryPathsSeen.Contains(subDir.FullName))
{
if (!string.IsNullOrWhiteSpace(_backupDirectory) && !subDir.FullName.StartsWith(_backupDirectory))
if (!string.IsNullOrWhiteSpace(_backupDirectory) && subDir.FullName.StartsWith(_backupDirectory))
{
continue; // don't back up backup directory
}
Expand Down Expand Up @@ -216,7 +216,7 @@ private Dictionary<string, ulong> GetFilePathsAndSizesInDirectory(string sourceD
}
if (!_directoryPathsSeen.Contains(subDir.FullName))
{
if (!string.IsNullOrWhiteSpace(_backupDirectory) && !subDir.FullName.StartsWith(_backupDirectory))
if (!string.IsNullOrWhiteSpace(_backupDirectory) && subDir.FullName.StartsWith(_backupDirectory))
{
continue; // don't back up backup directory
}
Expand Down

0 comments on commit fcab8e2

Please sign in to comment.