mirror of
https://github.com/winfsp/winfsp.git
synced 2026-11-04 16:16:04 -06:00
tst: passthrough-dotnet: handle undoc wildcards in ReadDirectoryEntry
- reported by Pavel Franc over email
This commit is contained in:
1 file changed
+5
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user