Java Path Exist nio isFileExists(Path file)

Here you can find the source of isFileExists(Path file)

Description

is File Exists

License

Open Source License

Declaration

public static boolean isFileExists(Path file) 

Method Source Code

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

import java.nio.file.Files;

import java.nio.file.Path;

public class Main {
    public static boolean isFileExists(Path file) {
        return Files.exists(file) && Files.isRegularFile(file);
    }//  w  w  w . j a v  a 2  s . c  o m
}

Related

  1. exists(String path)
  2. existsAndIsDirectory(Path path)
  3. fileExists(Path path)
  4. getNonExisting(Path path)
  5. isExists(final Path path)
  6. lenientExists(Path file)
  7. makeTempFilePath(boolean exists)