mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:43:01 +08:00
Improve inline comment
This commit is contained in:
parent
b18652b25f
commit
5d22f3d879
@ -65,8 +65,9 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
||||
return;
|
||||
}
|
||||
|
||||
//We aren't using CreateSubDirectory due to the flaw with a root of a drive
|
||||
target = Directory.CreateDirectory(Path.Combine(target.FullName, "osu-lazer"));
|
||||
// Not using CreateSubDirectory as it throws unexpectedly when attempting to create a directory when already at the root of a disk.
|
||||
// See https://cs.github.com/dotnet/runtime/blob/f1bdd5a6182f43f3928b389b03f7bc26f826c8bc/src/libraries/System.Private.CoreLib/src/System/IO/DirectoryInfo.cs#L88-L94
|
||||
target = Directory.CreateDirectory(Path.Combine(target.FullName, @"osu-lazer"));
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
Loading…
Reference in New Issue
Block a user