- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for convertToPermissionsSet (0.2 sec)
-
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/nio/PosixJdk7FilePermissionHandler.java
import java.nio.file.attribute.PosixFileAttributes; import static org.gradle.internal.file.nio.PosixFilePermissionConverter.convertToInt; import static org.gradle.internal.file.nio.PosixFilePermissionConverter.convertToPermissionsSet; @SuppressWarnings("Since15") public class PosixJdk7FilePermissionHandler implements FileModeAccessor, FileModeMutator { @Override public int getUnixMode(File file) throws IOException {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:56 UTC 2024 - 1.7K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/PosixFilePermissionConverterTest.groovy
} def "converts int representation to Set<PosixFilePermission)String representation"() { expect: perms == PosixFilePermissionConverter.convertToPermissionsSet(intValue) where: perms | intValue EnumSet.noneOf(PosixFilePermission) | 0
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:56 UTC 2024 - 3.1K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/nio/PosixFilePermissionConverter.java
import static java.nio.file.attribute.PosixFilePermission.OWNER_WRITE; @SuppressWarnings({"Since15", "OctalInteger"}) public class PosixFilePermissionConverter { public static Set<PosixFilePermission> convertToPermissionsSet(int mode) { Set<PosixFilePermission> result = EnumSet.noneOf(PosixFilePermission.class); if (isSet(mode, 0400)) { result.add(OWNER_READ); } if (isSet(mode, 0200)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:56 UTC 2024 - 3.4K bytes - Viewed (0)