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:
Sebastien Ros
2013-02-19 15:36:53 -08:00
parent 7f7b1b63df
commit 06f21a14a6

View File

@@ -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) {