glob icon indicating copy to clipboard operation
glob copied to clipboard

Failing to find files on MemoryFileSystem (Windows) when running on Linux machine

Open aiurovet opened this issue 3 years ago • 1 comments

I was running unit tests which are including Glob(...).matches(...), and it fails to match files when the mock filesystem is Windows-style, and the actual machine OS is POSIX-style. Even passing fileSystem.path as the context to Glob(...) does not help. When I had a closer look I found that in case of **\*a*, the class constructor appends {,/**} to the pattern. And although this should not produce any harm, I believe, it is not working as expected. I suspect, the machine's directory separator is used instead of the one for the file system. The similar issue happens to Glob(...).listFileStsemSync(...).

aiurovet avatar Oct 26 '21 08:10 aiurovet

I'm also encountering this issue.

bartekpacia avatar May 23 '23 22:05 bartekpacia