Here you can find the source of fileExists(final String path)
Parameter | Description |
---|---|
path | path |
static boolean fileExists(final String path)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { /**/*from w ww. j a va 2s. co m*/ * @param path path * @return true if the file exists */ static boolean fileExists(final String path) { File file = new File(path); return file.exists(); } }