Java File Exist fileExists(final String path)

Here you can find the source of fileExists(final String path)

Description

file Exists

License

Open Source License

Parameter

Parameter Description
path path

Return

true if the file exists

Declaration

static boolean fileExists(final String path) 

Method Source Code


//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();
    }
}

Related

  1. fileExists(File dir, String regex)
  2. fileExists(File directory, String fileName)
  3. fileExists(File file)
  4. fileExists(File path)
  5. fileExists(final String path)
  6. fileExists(final String pathname)
  7. fileExists(String absolutePathAndFileName)
  8. fileExists(String aFilename)
  9. fileExists(String file)