Get java.nio.file.Path object from java.io.File

Is it possible to get a Path object from a java.io.File?

I know you can convert a path to a file using toFile() method, but I couldn’t find the opposite conversion. Is there a way to do this in Java 6 or lower?

4 Answers
4

Leave a Comment