public final class FilePermissions extends Object
Modifier and Type | Method and Description |
---|---|
static int |
posixPermissionsToUmask(Collection<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(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(Path path) throws IOException
path
- the file pathIOException
- if path permissions cannot be readpublic static int posixPermissionsToUmask(Collection<PosixFilePermission> permissions)
permissions
- the set of PosixFilePermission
s