Java File Exist fileExists(String path)

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

Description

file Exists

License

Apache License

Declaration

public static boolean fileExists(String path) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.*;

public class Main {
    public static boolean fileExists(String path) {
        if (path == null) {
            return false;
        } else {/*w  ww  .j  a v  a 2 s .  com*/
            File file = new File(path);
            return file.exists();
        }
    }
}

Related

  1. fileExists(String name)
  2. fileExists(String parentDirectory, String filename)
  3. fileExists(String path)
  4. fileExists(String path)
  5. fileExists(String path)
  6. fileExists(String path)
  7. fileExists(String path, boolean throwException)
  8. fileExists(String path, String fileName)
  9. fileExists(String s)