mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08: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 destination = new DirectoryInfo(GetFullPath(default_tournament));
|
||||||
var cfgDestination = new DirectoryInfo(GetFullPath(default_tournament + Path.DirectorySeparatorChar + config_directory));
|
var cfgDestination = new DirectoryInfo(GetFullPath(default_tournament + Path.DirectorySeparatorChar + config_directory));
|
||||||
|
|
||||||
// if (!destination.Exists)
|
|
||||||
// destination.Create();
|
|
||||||
|
|
||||||
if (source.Exists)
|
if (source.Exists)
|
||||||
{
|
{
|
||||||
Logger.Log("Migrating tournament assets to default tournament storage.");
|
Logger.Log("Migrating tournament assets to default tournament storage.");
|
||||||
|
@ -55,8 +55,6 @@ namespace osu.Game.IO
|
|||||||
{
|
{
|
||||||
if (destination.GetFiles().Length > 0 || destination.GetDirectories().Length > 0)
|
if (destination.GetFiles().Length > 0 || destination.GetDirectories().Length > 0)
|
||||||
throw new ArgumentException("Destination provided already has files or directories present", nameof(newLocation));
|
throw new ArgumentException("Destination provided already has files or directories present", nameof(newLocation));
|
||||||
|
|
||||||
deleteRecursive(destination);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
copyRecursive(source, destination);
|
copyRecursive(source, destination);
|
||||||
|
Loading…
Reference in New Issue
Block a user