mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 07:04:57 +01:00
Implement SynchronousIOManager.GetFiles
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user