From 738ad9bbfa02b05f4c660863a7b96b88333d9c4f Mon Sep 17 00:00:00 2001 From: sbwalker Date: Thu, 29 Jan 2026 10:59:31 -0500 Subject: [PATCH] resolve issue replicating files --- Oqtane.Server/Infrastructure/Jobs/SynchronizationJob.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Oqtane.Server/Infrastructure/Jobs/SynchronizationJob.cs b/Oqtane.Server/Infrastructure/Jobs/SynchronizationJob.cs index ef90905a..c032da7b 100644 --- a/Oqtane.Server/Infrastructure/Jobs/SynchronizationJob.cs +++ b/Oqtane.Server/Infrastructure/Jobs/SynchronizationJob.cs @@ -420,6 +420,10 @@ namespace Oqtane.Infrastructure { var primaryPath = Path.Combine(folderRepository.GetFolderPath(primaryFolder), primaryFile.Name); var secondaryPath = Path.Combine(folderRepository.GetFolderPath(secondaryFolder), secondaryFile.Name); + if (!Directory.Exists(Path.GetDirectoryName(secondaryPath))) + { + Directory.CreateDirectory(Path.GetDirectoryName(secondaryPath)); + } System.IO.File.Copy(primaryPath, secondaryPath, true); }