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;
//License from project: Open Source License 

import java.io.File;

public class Main {
    public static boolean isFileExists(File file) {
        return file.exists() && file.isFile();
    }//from w  ww .  ja v a  2 s.c  om

    public static boolean isFileExists(String filepath) {
        return isFileExists(new File(filepath));
    }
}

Related

  1. isFileExistByRegex(String dir, final String regex)
  2. isFileExisted(String filePathname)
  3. isFileExistent(String path)
  4. isFileExistNotCreate(String fileNameAndPath)
  5. isFileExists(String f, String ext)
  6. isFileExists(String filePath)
  7. isFileExists(String filePath)
  8. isFileExists(String filePathString)