Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 133 for symlink2 (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/os/file_windows.go

    		return &LinkError{"link", oldname, newname, err}
    	}
    	return nil
    }
    
    // Symlink creates newname as a symbolic link to oldname.
    // On Windows, a symlink to a non-existent oldname creates a file symlink;
    // if oldname is later created as a directory the symlink will not work.
    // If there is an error, it will be of type *LinkError.
    func Symlink(oldname, newname string) error {
    	// '/' does not work in link's content
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. src/os/os_windows_test.go

    		}
    		var wantType fs.FileMode
    		if test.isMountPoint && winsymlink.Value() != "0" {
    			// Mount points are reparse points, and we no longer treat them as symlinks.
    			wantType = fs.ModeIrregular
    		} else {
    			// This is either a real symlink, or a mount point treated as a symlink.
    			wantType = fs.ModeSymlink
    		}
    		if tp := fi2.Mode().Type(); tp != wantType {
    			t.Errorf("Lstat(%q) is type %v; want %v", link, tp, wantType)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K 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. src/path/filepath/path_test.go

    	// Create "link" in the current working directory as a symlink to an arbitrary
    	// absolute path. On macOS, this path is likely to begin with a symlink
    	// itself: generally either in /var (symlinked to "private/var") or /tmp
    	// (symlinked to "private/tmp").
    	if err := os.Symlink(tmpDir, "link"); err != nil {
    		t.Fatal(err)
    	}
    	t.Logf(`os.Symlink(%q, "link")`, tmpDir)
    
    	p, err := filepath.EvalSymlinks("link")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  10. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/impl/DirectorySnapshotter.java

            this.collector = collector;
        }
    
        /**
         * Snapshots a directory, reusing existing previously known snapshots.
         *
         * Follows symlinks and includes them in the returned snapshot.
         * Snapshots of followed symlinks are marked with {@link AccessType#VIA_SYMLINK}.
         *
         * @param absolutePath The absolute path of the directory to snapshot.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 24.4K bytes
    - Viewed (0)
Back to top