public static boolean isFileExists(final String path){
  if (TextUtils.isEmpty(path)) {
    Log.e(FileUtils.class,"isFileExists(): Null or Empty parameter given");
    return false;
  }
  final File fileToCheck=new File(path);
  return fileToCheck.exists() && !fileToCheck.isDirectory();
}

public static boolean isFileExists ( final String path ) { if ( TextUtils . isEmpty ( path ) ) { Log . e ( FileUtils . class , "isFileExists(): Null or Empty parameter given" ) ; return false ; } final File fileToCheck = new File ( path ) ; return fileToCheck . exists ( ) && ! fileToCheck . isDirectory ( ) ; }
check if given path is a file and if it exists
