1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Fix TestMigrationToSeeminglyNestedTarget failing

This commit is contained in:
Shivam 2020-06-22 11:56:14 +02:00
parent 21774b8967
commit f878388d57
3 changed files with 1 additions and 6 deletions

View File

@ -52,9 +52,6 @@ namespace osu.Game.Tournament.IO
var destination = new DirectoryInfo(GetFullPath(default_tournament));
var cfgDestination = new DirectoryInfo(GetFullPath(default_tournament + Path.DirectorySeparatorChar + config_directory));
// if (!destination.Exists)
// destination.Create();
if (source.Exists)
{
Logger.Log("Migrating tournament assets to default tournament storage.");

View File

@ -53,7 +53,7 @@ namespace osu.Game.IO
{
// based off example code https://docs.microsoft.com/en-us/dotnet/api/system.io.directoryinfo
if (!destination.Exists)
Directory.CreateDirectory(destination.FullName);
Directory.CreateDirectory(destination.FullName);
foreach (System.IO.FileInfo fi in source.GetFiles())
{

View File

@ -55,8 +55,6 @@ namespace osu.Game.IO
{
if (destination.GetFiles().Length > 0 || destination.GetDirectories().Length > 0)
throw new ArgumentException("Destination provided already has files or directories present", nameof(newLocation));
deleteRecursive(destination);
}
copyRecursive(source, destination);