Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 513 for sh_link (0.19 sec)

  1. src/cmd/go/testdata/script/list_symlink_internal.txt

    [!symlink] skip
    env GO111MODULE=off
    
    mkdir $WORK/tmp/gopath/src/dir1/internal/v
    cp p.go $WORK/tmp/gopath/src/dir1/p.go
    cp v.go $WORK/tmp/gopath/src/dir1/internal/v/v.go
    symlink $WORK/tmp/symdir1 -> $WORK/tmp/gopath/src/dir1
    env GOPATH=$WORK/tmp/gopath
    cd $WORK/tmp/symdir1
    go list -f '{{.Root}}' .
    stdout '^'$WORK/tmp/gopath'$'
    
    # All of these should succeed, not die in internal-handling code.
    go run p.go &
    go build &
    go install &
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 529 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/list_symlink.txt

    [!symlink] skip
    env GO111MODULE=off
    
    mkdir $WORK/tmp/src
    symlink $WORK/tmp/src/dir1 -> $WORK/tmp
    cp p.go $WORK/tmp/src/dir1/p.go
    env GOPATH=$WORK/tmp
    go list -f '{{.Root}}' dir1
    stdout '^'$WORK/tmp'$'
    
    -- p.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 223 bytes
    - Viewed (0)
  3. pkg/kubelet/config/file_linux_test.go

    	}
    )
    
    func TestWatchFileAdded(t *testing.T) {
    	for _, testCase := range testCases {
    		watchFileAdded(testCase.watchDir, testCase.symlink, t)
    	}
    }
    
    func TestWatchFileChanged(t *testing.T) {
    	for _, testCase := range testCases {
    		watchFileChanged(testCase.watchDir, testCase.symlink, testCase.period, t)
    	}
    }
    
    type testCase struct {
    	lock     *sync.Mutex
    	desc     string
    	pod      runtime.Object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 14 09:38:23 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  4. src/internal/testenv/testenv_windows.go

    func initWinHasSymlink() {
    	tmpdir, err := os.MkdirTemp("", "symtest")
    	if err != nil {
    		panic("failed to create temp directory: " + err.Error())
    	}
    	defer os.RemoveAll(tmpdir)
    
    	err = os.Symlink("target", filepath.Join(tmpdir, "symlink"))
    	if err != nil {
    		err = err.(*os.LinkError).Err
    		switch err {
    		case syscall.EWINDOWS, syscall.ERROR_PRIVILEGE_NOT_HELD:
    			winSymlinkErr = err
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 1K bytes
    - Viewed (0)
  5. pkg/kubelet/container/os.go

    // MkdirAll will call os.MkdirAll to create a directory.
    func (RealOS) MkdirAll(path string, perm os.FileMode) error {
    	return os.MkdirAll(path, perm)
    }
    
    // Symlink will call os.Symlink to create a symbolic link.
    func (RealOS) Symlink(oldname string, newname string) error {
    	return os.Symlink(oldname, newname)
    }
    
    // Stat will call os.Stat to get the FileInfo for a given path
    func (RealOS) Stat(path string) (os.FileInfo, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  6. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/SdkmanInstallationSupplierTest.groovy

            given:
            def real = candidates.createDir("java/11.0.6.hs-adpt")
            def symlink = candidates.file("java/symlink").createLink(real)
    
            when:
            def directories = supplier.get()
    
            then:
            directories.size() == 2
            directories*.location.containsAll(real, symlink)
            directories*.source.unique() == ["SDKMAN!"]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 22:17:53 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. src/os/os_windows_test.go

    	absLink := filepath.Join(temp, "link")
    	err = os.Symlink(wdRelDir, absLink)
    	if err != nil {
    		t.Fatal(err)
    	}
    	t.Logf("Symlink(%#q, %#q)", wdRelDir, absLink)
    
    	// Now change back to the original working directory and verify that the
    	// symlink still refers to its original path and is correctly marked as a
    	// directory.
    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/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)
  9. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/AsdfInstallationSupplierTest.groovy

            given:
            def real = candidates.createDir("installs/java/11.0.6.hs-adpt")
            def symlink = candidates.file("installs/java/symlink").createLink(real)
    
            when:
            def directories = supplier.get()
    
            then:
            directories.size() == 2
            directories*.location.containsAll(real, symlink)
            directories*.source.unique() == ["asdf-vm"]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 22:17:53 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. pkg/volume/util/subpath/subpath_windows.go

    		upperpath = getUpperPath(upperpath)
    		if isDriveLetterorEmptyPath(upperpath) {
    			klog.V(4).Infof("Path '%s' is not a symlink, return its original form.", path)
    			return path, nil
    		}
    	}
    	// This command will give the target path of a given symlink
    	// The -Force parameter will allow Get-Item to also evaluate hidden folders, like AppData.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top