Fix filesystem tests when readdir returns a null list.

This commit is contained in:
2021-09-12 19:27:43 +01:00
parent 840cdcc331
commit 631eee916f

View File

@@ -240,6 +240,9 @@ namespace Aaru.Tests.Filesystems
Dictionary<string, FileData> children = new Dictionary<string, FileData>();
fs.ReadDir(path, out List<string> contents);
if(contents is null)
return children;
foreach(string child in contents)
{
string childPath = $"{path}/{child}";