When to use ** (double star) in glob syntax within JAVA
Directly from this Java Oracle tutorial: Two asterisks, **, works like * but crosses directory boundaries. This syntax is generally used for matching complete paths. Could anybody do a real example out of it? What do they mean with "crosses directory boundary"? Crossing the directory boundary, I imagine something like checking the file from root to getNameCount()-1 . Again a real example explaining the difference between * and ** in practice would be great. The javadoc for FileSystem#getPathMatcher() has some pretty good examples and explanations *.java Matches a path that represents a file