I have an instance of scala.reflect.io.Directory and I would like to use it as the working directory of a Process:
val workDirectory : scala.reflect.io.Directory = ???
Process("myCommand", workDirectory)
Process requires a Java java.io.File argument, however. How do I convert the scala Directory to a Java File? I can see methods like toFile, toAbsolute, ... but none of them returns what I need (the same applies for Scala File or Path).