Poly-io
is a lightweight (no-dependencies), typesafe and easy-to-use library for file system I/O in Scala (2.11/2.12).
libraryDependencies += "me.tongfei" %% "poly-io" % "0.3.2"
import poly.io.Local._
val lines = File("/usr/local/...").lines // type: Iterable[String]
val li = File("/home/foo/bar.gz") decompress Gzip decode Codec.ISOLatin1 linesIterator // type: Iterator[String]
val files = Local.Directory("/home/foo/a").recursiveChildren // type: Iterable[Local.Path]
val zipFile = files.find(_.name endsWith "zip").get
val z = ZipArchive(zipFile)
val filesInZip = z.root.recursiveChildren // type: Iterable[z.Path]
TODO