static boolean |
Files.exists(Path path,
LinkOption... options) |
Tests whether a file exists.
|
static Object |
Files.getAttribute(Path path,
String attribute,
LinkOption... options) |
Reads the value of a file attribute.
|
static <V extends FileAttributeView> V |
Files.getFileAttributeView(Path path,
Class<V> type,
LinkOption... options) |
Returns a file attribute view of a given type.
|
<V extends FileAttributeView> V |
SecureDirectoryStream.getFileAttributeView(T path,
Class<V> type,
LinkOption... options) |
Returns a new file attribute view to access the file attributes of a file
in this directory.
|
static FileTime |
Files.getLastModifiedTime(Path path,
LinkOption... options) |
Returns a file's last modified time.
|
static UserPrincipal |
Files.getOwner(Path path,
LinkOption... options) |
Returns the owner of a file.
|
static Set<PosixFilePermission> |
Files.getPosixFilePermissions(Path path,
LinkOption... options) |
Returns a file's POSIX file permissions.
|
static boolean |
Files.isDirectory(Path path,
LinkOption... options) |
Tests whether a file is a directory.
|
static boolean |
Files.isRegularFile(Path path,
LinkOption... options) |
Tests whether a file is a regular file with opaque content.
|
SecureDirectoryStream<T> |
SecureDirectoryStream.newDirectoryStream(T path,
LinkOption... options) |
Opens the directory identified by the given path, returning a
SecureDirectoryStream to iterate over the entries in the directory.
|
static boolean |
Files.notExists(Path path,
LinkOption... options) |
Tests whether the file located by this path does not exist.
|
static <A extends BasicFileAttributes> A |
Files.readAttributes(Path path,
Class<A> type,
LinkOption... options) |
Reads a file's attributes as a bulk operation.
|
static Map<String,Object> |
Files.readAttributes(Path path,
String attributes,
LinkOption... options) |
Reads a set of file attributes as a bulk operation.
|
static Path |
Files.setAttribute(Path path,
String attribute,
Object value,
LinkOption... options) |
Sets the value of a file attribute.
|
Path |
Path.toRealPath(LinkOption... options) |
Returns the real path of an existing file.
|