mirror of https://github.com/ppy/osu
Rename `GetPath` to `GetFullPath` to better match expectations
This commit is contained in:
parent
864f1bdb3e
commit
5e0b89a1a8
|
@ -323,11 +323,11 @@ private DateTimeOffset getDateAdded(ArchiveReader? reader)
|
|||
{
|
||||
var beatmaps = reader.Filenames.Where(f => f.EndsWith(".osu", StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
dateAdded = File.GetLastWriteTimeUtc(legacyReader.GetPath(beatmaps.First()));
|
||||
dateAdded = File.GetLastWriteTimeUtc(legacyReader.GetFullPath(beatmaps.First()));
|
||||
|
||||
foreach (string beatmapName in beatmaps)
|
||||
{
|
||||
var currentDateAdded = File.GetLastWriteTimeUtc(legacyReader.GetPath(beatmapName));
|
||||
var currentDateAdded = File.GetLastWriteTimeUtc(legacyReader.GetFullPath(beatmapName));
|
||||
|
||||
if (currentDateAdded < dateAdded)
|
||||
dateAdded = currentDateAdded;
|
||||
|
|
|
@ -21,9 +21,9 @@ public LegacyDirectoryArchiveReader(string path)
|
|||
this.path = Path.GetFullPath(path);
|
||||
}
|
||||
|
||||
public override Stream GetStream(string name) => File.OpenRead(GetPath(name));
|
||||
public override Stream GetStream(string name) => File.OpenRead(GetFullPath(name));
|
||||
|
||||
public string GetPath(string name) => Path.Combine(path, name);
|
||||
public string GetFullPath(string filename) => Path.Combine(path, filename);
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue