Class FilePermissions
java.lang.Object
org.springframework.boot.buildpack.platform.io.FilePermissions
Utilities for dealing with file permissions and attributes.
- Since:
- 2.5.0
- Author:
- Scott Frederick
- 
Method SummaryModifier and TypeMethodDescriptionstatic intposixPermissionsToUmask(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 intumaskForPath(Path path) Return the integer representation of the file permissions for a path, where the integer value conforms to the umask octal notation.
- 
Method Details- 
umaskForPathReturn the integer representation of the file permissions for a path, where the integer value conforms to the umask octal notation.- Parameters:
- path- the file path
- Returns:
- the integer representation
- Throws:
- IOException- if path permissions cannot be read
 
- 
posixPermissionsToUmaskReturn the integer representation of a set of Posix file permissions, where the integer value conforms to the umask octal notation.- Parameters:
- permissions- the set of- PosixFilePermissions
- Returns:
- the integer representation
 
 
-