Skip to content

InMemoryDirectoryInfo does not work as expected #36415

@antonKrouglov

Description

@antonKrouglov

Microsoft.Extensions.FileSystemGlobbing

Steps to reproduce (file C:\pagefile.sys exists):

            var d = new InMemoryDirectoryInfo(@"C:\", new[] { @"pagefile.sys" });
            var l = d.EnumerateFileSystemInfos().ToList(); //returns empty list

Thus using

public static PatternMatchingResult Match(this Matcher matcher, string rootDir, IEnumerable<string> files)

does not work as well - the result is always empty.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions