1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 18:32:56 +08:00

make it only look for files instead of directories

This commit is contained in:
ColdVolcano 2017-09-16 18:44:32 -05:00
parent 47b62803d8
commit 8944d0f705

View File

@ -26,7 +26,7 @@ namespace osu.Game.Beatmaps.IO
// no-op
}
public override IEnumerable<string> Filenames => Directory.GetDirectories(path).Select(Path.GetFileName).ToArray();
public override IEnumerable<string> Filenames => Directory.GetFiles(path, "*", SearchOption.AllDirectories).Select(Path.GetFileName).ToArray();
public override Stream GetUnderlyingStream() => null;
}