Children
Search the contents of a directory and perform operations on the objects encountered
Children
Operate on all children
import scalax.file.{Path, PathMatcher}
import scalax.file.PathMatcher._
val path:Path = Path("/tmp/")
// print the name of each object in the directory
path.children ().collect {case path => println (path.name)}
// Now print names of each directory
path.children ().collect {case IsFile(file) => println (file.name)}