Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 168 for symlinks (0.1 sec)

  1. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterTest.groovy

            ] as Set
        }
    
        @Requires(UnitTestPreconditions.Symlinks)
        def "symlinked directories in tree are marked as accessed via symlink"() {
            def rootDir = tmpDir.createDir("root")
            def linkTarget = tmpDir.createDir("linkTarget")
            linkTarget.file("other/text.txt").text = "text"
            def symlink = rootDir.file("some/sub/dir")
            symlink.createLink(linkTarget)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  2. pkg/volume/util/atomic_writer.go

    //
    // The visible files in this volume are symlinks to files in the writer's data
    // directory.  Actual files are stored in a hidden timestamped directory which
    // is symlinked to by the data directory. The timestamped directory and
    // data directory symlink are created in the writer's target dir.  This scheme
    // allows the files to be atomically updated by changing the target of the
    // data directory symlink.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. pkg/volume/util/subpath/subpath_linux.go

    	// Evaluate all symlinks here once for all subsequent functions.
    	newVolumePath, err := filepath.EvalSymlinks(subpath.VolumePath)
    	if err != nil {
    		return "", fmt.Errorf("error resolving symlinks in %q: %v", subpath.VolumePath, err)
    	}
    	newPath, err := filepath.EvalSymlinks(subpath.Path)
    	if err != nil {
    		return "", fmt.Errorf("error resolving symlinks in %q: %v", subpath.Path, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 14:09:11 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/file/FileCollectionSymlinkIntegrationTest.groovy

                def symlink = new File(baseDir, "symlink")
                def symlinked = new File(baseDir, "symlinked")
                def fileCollection = $code
    
                assert fileCollection.contains(file)
                assert fileCollection.contains(symlink)
                assert fileCollection.contains(symlinked)
                assert fileCollection.files == [file, symlink, symlinked] as Set
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy

            linked.assertIsEmptyDir()
            Files.readSymbolicLink(target.toPath()) == linked.toPath()
            content.assertDoesNotExist()
        }
    
        @Requires(UnitTestPreconditions.Symlinks)
        def "recreates target directory when symlink is found, leaving linked content untouched"() {
            def linked = tmpDir.createDir("linked")
            def content = linked.createFile("content.txt")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:40:48 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  6. platforms/jvm/toolchains-jvm-shared/src/test/groovy/org/gradle/jvm/toolchain/internal/install/DefaultJdkCacheDirectoryTest.groovy

            new File(installedJdk, "jdk-123/file").exists()
        }
    
        @Ignore
        def "provisions jdk from tar.gz archive with MacOS symlinks"() {
            def jdkArchive = resources.getResource("jdk-with-symlinks.tar.gz")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 06:41:24 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. pkg/volume/util/subpath/subpath_windows.go

    	return nil
    }
    
    // SafeMakeDir makes sure that the created directory does not escape given base directory mis-using symlinks.
    func (sp *subpath) SafeMakeDir(subdir string, base string, perm os.FileMode) error {
    	realBase, err := evalSymlink(base)
    	if err != nil {
    		return fmt.Errorf("error resolving symlinks in %s: %s", base, err)
    	}
    
    	realFullPath := filepath.Join(realBase, subdir)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. src/os/types_windows.go

    	// that refer to directories, such as symlinks and mount points.
    	// However, we follow symlink POSIX semantics and do not set the mode bits.
    	// This allows users to walk directories without following links
    	// by just calling "fi, err := os.Lstat(name); err == nil && fi.IsDir()".
    	// Note that POSIX only defines the semantics for symlinks, not for
    	// mount points or other surrogate reparse points, but we treat them
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. testing/internal-testing/src/main/groovy/org/gradle/test/preconditions/UnitTestPreconditions.groovy

    @CompileStatic
    class UnitTestPreconditions {
    
        static final class Symlinks implements TestPrecondition {
            @Override
            boolean isSatisfied() {
                return satisfied(MacOs) || satisfied(Linux)
            }
        }
    
        static final class NoSymlinks implements TestPrecondition {
            @Override
            boolean isSatisfied() {
                return notSatisfied(Symlinks)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/execution/commandline/CommandLineIntegrationTest.groovy

            then:
            failure.error.contains('ERROR: JAVA_HOME is set to an invalid directory')
        }
    
        @Requires([UnitTestPreconditions.Symlinks, IntegTestPreconditions.NotEmbeddedExecutor])
        def "fails when java home not set and path does not contain java"() {
            when:
            def links = ['basename', 'dirname', 'uname', 'which', 'sed', 'sh', 'bash']
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:22 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top