Is it possible to get a Path object from a java.io.File?
java.io.File
I know you can convert a path to a file using toFile() method, but I couldn\'t fin
toFile()
Yes, you can get it from the File object by using File.toPath(). Keep in mind that this is only for Java 7+. Java versions 6 and below do not have it.