Code example for Path

Methods: toFile

0
 */ 
public class InvertUtils { 
  public Path getPath(String name) {
    FileSystem fs = FileSystems.getDefault();
    Path path = fs.getPath(name);
    if (path.toFile().exists()) {
      return path;
    } else { 
      return fs.getPath("compiler/" + name);
    } 
  } 
} 
Contextual code suggestions in your IDE  Get Codota for Java