@ThreadSafe public final class ModeUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Mode |
applyDirectoryUMask(Mode mode,
String authUmask)
Applies the default umask for newly created directories to this mode.
|
static Mode |
applyFileUMask(Mode mode,
String authUmask)
Applies the default umask for newly created files to this mode.
|
static Mode |
getUMask(String confUmask)
Gets the file / directory creation umask.
|
static short |
protoToShort(PMode pMode)
Used to get short value of a proto
PMode . |
public static Mode applyFileUMask(Mode mode, String authUmask)
mode
- the mode to updateauthUmask
- the umask to apply on the filepublic static Mode applyDirectoryUMask(Mode mode, String authUmask)
mode
- the mode to updateauthUmask
- the umask to apply on the directorypublic static short protoToShort(PMode pMode)
PMode
.pMode
- proto modeCopyright © 2023. All Rights Reserved.