mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix filesystem tests when readdir returns a null list.
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user