Here you can find the source of fileOrPathExists(String path)
public static Boolean fileOrPathExists(String path)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static Boolean fileOrPathExists(String path) { File f = new File(path); return f.exists(); }/* w w w.ja va2 s . com*/ }