I think I understand now what you mean. `PurePath.match()` doesn't support 
recursive (`**`) matching.
```
>>> pathlib.PurePath('gs://foo/bar/foo.txt').match('gs://*/*/*')
True
>>> pathlib.PurePath('gs://foo/bar/foo.txt').match('gs://**')
False
```

And `glob()` only works on (Python) readable paths, which limits it to 
LocalFileSystem.

I think that doing our own conversion of glob pattern to regex is the best 
solution.

[ Full content available at: https://github.com/apache/beam/pull/6423 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to