Move hard link helper functions to their own class

This commit is contained in:
Dean Herbert
2022-12-13 19:53:12 +09:00
parent 1d4230993d
commit bbf931c746
3 changed files with 71 additions and 63 deletions

View File

@ -72,7 +72,7 @@ namespace osu.Game.Database
string testExistingPath = stableStorage.GetFullPath(stableStorage.GetFiles(string.Empty).First());
string testDestinationPath = desktopGameHost.Storage.GetFullPath(test_filename);
return RealmFileStore.CreateHardLink(testDestinationPath, testExistingPath, IntPtr.Zero);
return HardLinkHelper.CreateHardLink(testDestinationPath, testExistingPath, IntPtr.Zero);
}
public virtual async Task<int> GetImportCount(StableContent content, CancellationToken cancellationToken)