From 06f21a14a6232d6334ab3f49325df569bb7a30b5 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Tue, 19 Feb 2013 15:36:53 -0800 Subject: [PATCH] Forcing AppDataFolder to overwrite existing files. It happened that the same dependency was written by two different modules in parallel, which was leading to an exception. --HG-- branch : 1.x --- src/Orchard/FileSystems/AppData/AppDataFolder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard/FileSystems/AppData/AppDataFolder.cs b/src/Orchard/FileSystems/AppData/AppDataFolder.cs index 1f5c0e271..3b28fd025 100644 --- a/src/Orchard/FileSystems/AppData/AppDataFolder.cs +++ b/src/Orchard/FileSystems/AppData/AppDataFolder.cs @@ -137,7 +137,7 @@ namespace Orchard.FileSystems.AppData { var destinationFileName = CombineToPhysicalPath(destinationPath); MakeDestinationFileNameAvailable(destinationFileName); - File.Copy(sourceFileName, destinationFileName); + File.Copy(sourceFileName, destinationFileName, true); } public void DeleteFile(string path) {