Java File Exist isFileExist(String filePath)

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

Description

determin if file exist.

License

Open Source License

Parameter

Parameter Description
filePath a parameter

Declaration

public static boolean isFileExist(String filePath) 

Method Source Code


//package com.java2s;

import java.io.File;

public class Main {
    /**/* w  w w . j a  v  a2  s. c  o  m*/
     * determin if file exist.
     * 
     * @param filePath
     * @return
     */
    public static boolean isFileExist(String filePath) {
        File file = new File(filePath);
        return file.exists();
    }
}

Related

  1. isFileExist(File file, File folder)
  2. isFileExist(final String filePathString)
  3. isFileExist(String assetDestinationLocation, String id, String assetId)
  4. isFileExist(String file)
  5. isFileExist(String fileNameAndPath)
  6. isFileExist(String filePath)
  7. isFileExist(String path)
  8. isFileExist(String sFileName)
  9. isFileExistByRegex(String dir, final String regex)