mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 11:02:54 +08:00
Delete migration source if no files exist after completion
This commit is contained in:
parent
0b73063a89
commit
06f507496a
@ -87,6 +87,9 @@ namespace osu.Game.IO
|
|||||||
|
|
||||||
dir.Delete(true);
|
dir.Delete(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target.GetFiles().Length == 0 && target.GetDirectories().Length == 0)
|
||||||
|
target.Delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void copyRecursive(DirectoryInfo source, DirectoryInfo destination, bool topLevelExcludes = true)
|
private static void copyRecursive(DirectoryInfo source, DirectoryInfo destination, bool topLevelExcludes = true)
|
||||||
|
Loading…
Reference in New Issue
Block a user