A function that returns true if the Path parameter
matches.
PathMatchers are created by FileSystem#matcher(String,String)
and the same method explains how to specify a matcher.
Instances of this class can be used in match statements.
An example usage is:
val Code = fileSystem.matcher("*.scala")
Path("src").contents (0){case (Code(_),count) => count+1}
The above example counts all the scala files in the src directory.
A function that returns true if the Path parameter matches.
PathMatchers are created by
FileSystem#matcher(String,String)
and the same method explains how to specify a matcher. Instances of this class can be used in match statements.An example usage is:
The above example counts all the scala files in the src directory.
1.0
Path#matcher(String,String)
FileSystem#matcher(String,String)