类 FilePermissions
java.lang.Object
org.springframework.boot.buildpack.platform.io.FilePermissions
Utilities for dealing with file permissions and attributes.
- 从以下版本开始:
- 2.5.0
- 作者:
- Scott Frederick
-
方法概要
修饰符和类型方法说明static 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.
-
方法详细资料
-
umaskForPath
Return the integer representation of the file permissions for a path, where the integer value conforms to the umask octal notation.- 参数:
path- the file path- 返回:
- the integer representation
- 抛出:
IOException- if path permissions cannot be read
-
posixPermissionsToUmask
Return the integer representation of a set of Posix file permissions, where the integer value conforms to the umask octal notation.- 参数:
permissions- the set ofPosixFilePermissions- 返回:
- the integer representation
-