Java Is Path Exist isPathExist(String path)

Here you can find the source of isPathExist(String path)

Description

is Path Exist

License

Open Source License

Parameter

Parameter Description
path a parameter

Declaration

public static boolean isPathExist(String path) 

Method Source Code


//package com.java2s;
import java.io.File;

public class Main {
    /**//ww  w .j  a  v a 2s. c om
     * @param path
     * @return
     */
    public static boolean isPathExist(String path) {
        File file = new File(path);
        return file.exists();
    }
}

Related

  1. isPathExists(String path)