Added backups of all data, restorable on another computer (#1008)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
j-erlerandThorsten Sommer authored and GitHub committed 2026-10-15 16:42:02 +02:00
1 parent ab45580473
commit 936043319c
144 files changed
+10417 -424

No files matched your search

@@ -10,10 +10,26 @@ public sealed class FileEnumerationResult
public string LastError { get; set; } = string.Empty;
/// <summary>
/// The folders whose content could not be listed. The files below them are out of reach, not gone.
/// </summary>
public List<string> UnreadableDirectories { get; } = [];
/// <summary>
/// Why the file or the folder of the data source itself could not be reached, or null when it could.
/// </summary>
public string? UnreachableRootReason { get; set; }
public void AddFailure(string filePath, string reason)
{
this.Failures.Add(new DataSourceEmbeddingFailure(filePath, reason, DateTimeOffset.UtcNow));
this.FailedFiles = this.Failures.Count;
this.LastError = reason;
}
public void AddUnreadableDirectory(string directoryPath, string reason)
{
this.UnreadableDirectories.Add(directoryPath);
this.AddFailure(directoryPath, reason);
}
}