1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Add note about using hard links in the future

This commit is contained in:
Dean Herbert 2024-09-06 16:01:47 +09:00
parent 96042349ac
commit 36a30cf077
No known key found for this signature in database

View File

@ -195,6 +195,7 @@ namespace osu.Game.Database
Directory.CreateDirectory(Path.GetDirectoryName(destinationPath)!);
// Consider using hard links here to make this instant.
using (var inStream = Files.Storage.GetStream(sourcePath))
using (var outStream = File.Create(destinationPath))
await inStream.CopyToAsync(outStream).ConfigureAwait(false);