Java File Exist isFileExists(String filePath)

Here you can find the source of isFileExists(String filePath)

Description

is File Exists

License

Open Source License

Declaration

public static boolean isFileExists(String filePath) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean isFileExists(String filePath) {
        java.io.File myFile = new java.io.File(filePath);
        if (myFile.exists()) {
            return true;
        } else {//from   www  . ja  va2s . c  om
            return false;
        }
    }
}

Related

  1. isFileExisted(String filePathname)
  2. isFileExistent(String path)
  3. isFileExistNotCreate(String fileNameAndPath)
  4. isFileExists(String f, String ext)
  5. isFileExists(String filepath)
  6. isFileExists(String filePath)
  7. isFileExists(String filePathString)