public final class FileAttributes
extends java.lang.Object
FileAttribute handling.| Modifier and Type | Method and Description |
|---|---|
static java.nio.file.attribute.FileAttribute<?>[] |
defaultUserDirectoryAttributes(java.nio.file.Path directoryPath)
Get a proper default
FileAttribute set for a user directory. |
static java.nio.file.attribute.FileAttribute<?>[] |
defaultUserFileAttributes(java.nio.file.Path filePath)
Get a proper default
FileAttribute set for a user file. |
public static java.nio.file.attribute.FileAttribute<?>[] defaultUserDirectoryAttributes(java.nio.file.Path directoryPath)
FileAttribute set for a user directory.
Based upon the corresponding file system's capabilities this function determines the best suiting file attributes for only letting the current user access the directory.
directoryPath - The directory path to get the default file attributes for.public static java.nio.file.attribute.FileAttribute<?>[] defaultUserFileAttributes(java.nio.file.Path filePath)
FileAttribute set for a user file.
Based upon the corresponding file system's capabilities this function determines the best suiting file attributes for only letting the current user access the file.
filePath - The file path to get the default file attributes for.