- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for viaSymlink (0.2 sec)
-
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/FileMetadata.java
* The path pointed to a symlink pointing to the file with the metadata. */ VIA_SYMLINK; /** * Factory method for returning the access type based on a boolean. */ public static AccessType viaSymlink(boolean viaSymlink) { return viaSymlink ? VIA_SYMLINK : DIRECT; } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 2.2K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/nio/NioFileMetadataAccessor.java
} AccessType accessType = AccessType.viaSymlink(attributes.isSymbolicLink()); if (accessType == AccessType.VIA_SYMLINK) { try { attributes = Files.readAttributes(path, BasicFileAttributes.class); } catch (IOException e) { return DefaultFileMetadata.missing(AccessType.VIA_SYMLINK); } } if (attributes.isDirectory()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:56 UTC 2024 - 2.3K bytes - Viewed (0) -
platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/filesystem/services/NativePlatformBackedFileMetadataAccessor.java
} catch (NativeException e) { throw new UncheckedIOException("Could not stat file " + f.getAbsolutePath(), e); } AccessType accessType = AccessType.viaSymlink(stat.getType() == FileInfo.Type.Symlink); if (accessType == AccessType.VIA_SYMLINK) { try { stat = files.stat(f, true); } catch (NativeException e) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:55 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/core-runtime/files/src/testFixtures/groovy/org/gradle/internal/file/AbstractFileMetadataAccessorTest.groovy
import org.gradle.util.UsesNativeServices import org.junit.Rule import spock.lang.Specification import static org.gradle.internal.file.FileMetadata.AccessType.DIRECT import static org.gradle.internal.file.FileMetadata.AccessType.VIA_SYMLINK @UsesNativeServices abstract class AbstractFileMetadataAccessorTest extends Specification { @Rule TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:56 UTC 2024 - 6.9K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/impl/DefaultFileMetadata.java
private static final FileMetadata MISSING = new DefaultFileMetadata(FileType.Missing, 0, 0, AccessType.DIRECT); private static final FileMetadata BROKEN_SYMLINK = new DefaultFileMetadata(FileType.Missing, 0, 0, AccessType.VIA_SYMLINK); private final FileType type; private final long lastModified; private final long length;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 3.5K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterTest.groovy
snapshot.accessType == AccessType.VIA_SYMLINK snapshot.absolutePath == rootDir.absolutePath def link2 = snapshot.children[0].children[0] as DirectorySnapshot link2.accessType == AccessType.VIA_SYMLINK link2.name == "linked" def link3 = link2.children[1].children[0] as DirectorySnapshot link3.accessType == AccessType.VIA_SYMLINK link3.name == "linked3"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:32 UTC 2023 - 23.6K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/AbstractFileSystemLeafSnapshotTest.groovy
import org.gradle.internal.file.FileMetadata import org.gradle.internal.file.FileType import static org.gradle.internal.file.FileMetadata.AccessType.DIRECT import static org.gradle.internal.file.FileMetadata.AccessType.VIA_SYMLINK import static org.gradle.internal.snapshot.CaseSensitivity.CASE_SENSITIVE abstract class AbstractFileSystemLeafSnapshotTest<T extends FileSystemLeafSnapshot> extends AbstractFileSystemLocationSnapshotTest {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 23 13:19:32 UTC 2023 - 4.3K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/impl/FileSystemSnapshotSerializerTest.groovy
import org.gradle.internal.snapshot.TestSnapshotFixture import static org.gradle.internal.file.FileMetadata.AccessType.DIRECT import static org.gradle.internal.file.FileMetadata.AccessType.VIA_SYMLINK import static org.gradle.internal.file.impl.DefaultFileMetadata.file import static org.gradle.internal.hash.TestHashCodes.hashCodeFrom import static org.gradle.internal.snapshot.FileSystemSnapshot.EMPTY
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 4.1K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/DirectorySnapshotTest.groovy
def targetDir = testDirectory.file("target-directory") def directorySnapshot = new DirectorySnapshot(sourceDir.absolutePath, sourceDir.name, FileMetadata.AccessType.VIA_SYMLINK, TestHashCodes.hashCodeFrom(1234), []) when: def relocated = directorySnapshot.relocate(targetDir.absolutePath, stringInterner) then: !relocated.present }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 23 13:19:32 UTC 2023 - 4.5K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/AbstractFileSystemLocationSnapshot.java
return name; } @Override public Optional<? extends FileSystemLocationSnapshot> relocate(String targetPath, Interner<String> interner) { if (accessType == AccessType.VIA_SYMLINK) { return Optional.empty(); } String internedTargetPath = interner.intern(targetPath); String targetName = PathUtil.getFileName(internedTargetPath);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 23 13:19:32 UTC 2023 - 4.9K bytes - Viewed (0)