Implement SynchronousIOManager.GetFiles

This commit is contained in:
Cyberboss
2018-07-23 12:18:25 -04:00
parent 7732eef2a2
commit 2e866ce0fe
@@ -22,7 +22,12 @@ namespace Tgstation.Server.Host.Core
/// <inheritdoc />
public IEnumerable<string> GetFiles(string path, CancellationToken cancellationToken)
{
throw new NotImplementedException();
cancellationToken.ThrowIfCancellationRequested();
foreach (var I in Directory.EnumerateFiles(path))
{
yield return I;
cancellationToken.ThrowIfCancellationRequested();
}
}
/// <inheritdoc />