Children

Search the contents of a directory and perform operations on the objects encountered

Count Directories

      import scalax.file.{Path, PathMatcher}
      import scalax.file.PathMatcher._

      val path:Path = Path("/tmp/")
      val fileCount: Int = path.children ().collect{case IsFile (f)=> f}.foldLeft (0){(count, _) => count+1}