Merge pull request #5993 from sbwalker/dev

resolve issue replicating files
This commit is contained in:
Shaun Walker
2026-01-29 10:59:47 -05:00
committed by GitHub

View File

@@ -420,6 +420,10 @@ namespace Oqtane.Infrastructure
{ {
var primaryPath = Path.Combine(folderRepository.GetFolderPath(primaryFolder), primaryFile.Name); var primaryPath = Path.Combine(folderRepository.GetFolderPath(primaryFolder), primaryFile.Name);
var secondaryPath = Path.Combine(folderRepository.GetFolderPath(secondaryFolder), secondaryFile.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); System.IO.File.Copy(primaryPath, secondaryPath, true);
} }