shunping commented on issue #21140:
URL: https://github.com/apache/beam/issues/21140#issuecomment-1817092946

   I am not able to reproduce the original issue reported here, but I do find 
something interesting about the logic we implemented in Java.
   
   Basically, given a pattern (with wildcards or not), we will **first** check 
if there is a file name that matches exactly on the pattern (without any 
expansion). In other words, if there is a file named`*.txt` in the folder to 
match and we are trying to match a pattern `*.txt`, then only this file will be 
returned. 
   
   If there is no such an exact match, we then consider it as a glob pattern 
and match it using the glob syntax with 
    an api in `java.nio.FileSystem`.
   
   Notice that, in the second mode, "*" and "?" can be escaped by surrounding 
it with a pair of square brackets.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to