Moved temporary files into a folder of their own below the data directory (#1245)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-29 18:45:34 +01:00
1 parent ddfc632b63
commit 12d3e1ec6c
52 files changed
+1219 -396

No files matched your search

@@ -29,8 +29,12 @@ public static partial class PluginFactory
{
var directoryName = Path.GetFileName(configurationDirectory);
// A download in flight stages and backs up next to the configuration directories. Those
// directories belong to a running update, not to a withdrawn configuration:
//
// A download in flight backs up the previous configuration next to the configuration
// directories. Such a directory belongs to a running update, not to a withdrawn
// configuration. Earlier versions also staged the new configuration here; what they left
// behind goes the way of every other directory which is no configuration:
//
if (IsTransientDownloadDirectory(directoryName))
continue;
@@ -50,9 +54,7 @@ public static partial class PluginFactory
/// Checks whether a directory below the enterprise configuration directory belongs to a running
/// download instead of to an installed configuration.
/// </summary>
private static bool IsTransientDownloadDirectory(string directoryName) =>
directoryName.Contains(".staging-", StringComparison.OrdinalIgnoreCase) ||
directoryName.Contains(".backup-", StringComparison.OrdinalIgnoreCase);
private static bool IsTransientDownloadDirectory(string directoryName) => directoryName.Contains(".backup-", StringComparison.OrdinalIgnoreCase);
/// <summary>
/// Unloads every plugin stored in the given directory and deletes the directory afterwards.