Here you can find the source of checkPathExistence(String path)
public static boolean checkPathExistence(String path)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean checkPathExistence(String path) { java.nio.file.Path p;/*from www . j ava2s. c om*/ try { p = java.nio.file.Paths.get(path); } catch (java.nio.file.InvalidPathException ipe) { return false; } return java.nio.file.Files.exists(p); } }