Yes better-files
is a terribly unfortunate name. It started its life as:
implicit class BetterFile(javaFile: java.io.File) {
// utils !
}
I suggest this:
-
A better designed, pure, monadic, side-effect free, purely-Scala IO library that is compatible with Scala native (and Scala JS?) belongs to
scala.io._
. No such thing currently exists. -
better-files
belongs to something likescala.io.unsafe._
orscala.io.JavaConverters._
package. The understanding here is this library is a simple impure wrapper around Java. Interacting with Java’s IO stuff is an unfortunate truth that many developers have to deal with.
Alternatively, I am fine with keeping better-files
out of the Scala Platform and we can wait for 1) to happen and people can use better-files
as a non-platform library.