Java File Exist fileExists(String absolutePathAndFileName)

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

Description

file Exists

License

Open Source License

Declaration

public static Boolean fileExists(String absolutePathAndFileName) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {
    public static Boolean fileExists(String absolutePathAndFileName) {
        File f = new File(absolutePathAndFileName);

        if (f.exists() && !f.isDirectory()) {
            return true;
        } else {// ww  w.  ja  v  a 2 s.c om
            return false;
        }
    }
}

Related

  1. fileExists(File file)
  2. fileExists(File path)
  3. fileExists(final String path)
  4. fileExists(final String path)
  5. fileExists(final String pathname)
  6. fileExists(String aFilename)
  7. fileExists(String file)
  8. FileExists(String file)
  9. fileExists(String filename)