Skip to content

Commit 229cb45

Browse files
Updated RemoveOldestFilesBeforeFull to fall back on working directory when no archive directories are found
1 parent ad45a89 commit 229cb45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Libraries/Adapters/openHistorian.Adapters/LocalOutputAdapter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ private void RemoveOldestFilesBeforeFull()
887887
try
888888
{
889889
// Check if any target archive destination has enough disk space
890-
foreach (string path in m_archiveDirectories)
890+
foreach (string path in m_archiveDirectories ?? [WorkingDirectory])
891891
{
892892
FilePath.GetAvailableFreeSpace(path, out long freeSpace, out _);
893893

0 commit comments

Comments
 (0)