tst: passthrough-dotnet: handle undoc wildcards in ReadDirectoryEntry

- reported by Pavel Franc over email
This commit is contained in:
Bill Zissimopoulos 2017-12-05 10:32:58 -08:00
parent eb88f25f40
commit ead599e337
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3

View File

@ -640,8 +640,11 @@ namespace passthrough
FileDesc FileDesc = (FileDesc)FileDesc0;
if (null == FileDesc.FileSystemInfos)
{
IEnumerable Enum = FileDesc.DirInfo.EnumerateFileSystemInfos(
null != Pattern ? Pattern : "*");
if (null != Pattern)
Pattern = Pattern.Replace('<', '*').Replace('>', '?').Replace('=', '.');
else
Pattern = "*";
IEnumerable Enum = FileDesc.DirInfo.EnumerateFileSystemInfos(Pattern);
SortedList List = new SortedList();
List.Add(".", FileDesc.DirInfo);
List.Add("..", FileDesc.DirInfo.Parent);