Children

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

Remove Spaces

Remove spaces from names of paths renaming with this method can be dangerous because the stream may be calculated lazily on some filesystems and the renamed file could also be processed resulting in a infinite loop
      import scalax.file.{Path, PathMatcher}
      import scalax.file.PathMatcher._

      val path:Path = Path("/tmp/")
      val ContainsSpace:PathMatcher = path.matcher ("* *")
      path.children ().collect {case ContainsSpace (path) => path.moveTo (Path (path.name.filter (_ != ' ')))}