public final class FilePermissions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
posixPermissionsToUmask(java.util.Collection<java.nio.file.attribute.PosixFilePermission> permissions)
Return the integer representation of a set of Posix file permissions, where the
integer value conforms to the
umask octal notation.
|
static int |
umaskForPath(java.nio.file.Path path)
Return the integer representation of the file permissions for a path, where the
integer value conforms to the
umask octal notation.
|
public static int umaskForPath(java.nio.file.Path path)
throws java.io.IOException
path - the file pathjava.io.IOException - if path permissions cannot be readpublic static int posixPermissionsToUmask(java.util.Collection<java.nio.file.attribute.PosixFilePermission> permissions)
permissions - the set of PosixFilePermissions