Implicits

Using implicit conversions to convert between strings Java Files and Scala Paths

String To File

Implicitly convert strings to paths
    import scalax.file.Path
    import Path.string2path

    val filePath: Path = "/tmp/file"
  

Java File To Path

Implicitly convert files to paths
    import java.io.File
    import scalax.file.Path
    import Path.jfile2path

    val filePath: Path = new File ("/tmp/file")