mirror of
https://github.com/ppy/osu
synced 2025-01-23 22:33:05 +00:00
Fix TestMigrationToSeeminglyNestedTarget failing
This commit is contained in:
parent
21774b8967
commit
f878388d57
@ -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.");
|
||||
|
@ -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())
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user