mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user