public class MorePosixFilePermissions extends Object
Modifier and Type | Field and Description |
---|---|
static FileAttribute<?> |
READ_ONLY_FILE_ATTRIBUTE |
Modifier and Type | Method and Description |
---|---|
static com.google.common.collect.ImmutableSet<PosixFilePermission> |
addExecutePermissionsIfReadable(Set<PosixFilePermission> permissions)
Return a new set of permissions which include execute permission for each of the roles that
already have read permissions (e.g.
|
static com.google.common.collect.ImmutableSet<PosixFilePermission> |
fromMode(long mode)
Convert a unix bit representation (e.g.
|
static long |
toMode(Set<PosixFilePermission> permissions)
Convert a set of posix file permissions the unix bit representation (e.g.
|
public static final FileAttribute<?> READ_ONLY_FILE_ATTRIBUTE
public static long toMode(Set<PosixFilePermission> permissions)
public static com.google.common.collect.ImmutableSet<PosixFilePermission> fromMode(long mode)
public static com.google.common.collect.ImmutableSet<PosixFilePermission> addExecutePermissionsIfReadable(Set<PosixFilePermission> permissions)