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:
parent
96042349ac
commit
36a30cf077
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user