Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 136 for symlinks (0.13 sec)

  1. src/cmd/internal/moddeps/moddeps_test.go

    		if info.IsDir() && (src == filepath.Join(testenv.GOROOT(t), "bin") ||
    			src == filepath.Join(testenv.GOROOT(t), "pkg")) {
    			// If the OS supports symlinks, use them instead
    			// of copying the bin and pkg directories.
    			if err := os.Symlink(src, dst); err == nil {
    				return filepath.SkipDir
    			}
    		}
    
    		perm := info.Mode() & os.ModePerm
    		if info.Mode()&os.ModeSymlink != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/cmd/go/internal/cfg/cfg.go

    			}
    
    			// Depending on what was passed on the command line, it is possible
    			// that os.Executable is a symlink (like /usr/local/bin/go) referring
    			// to a binary installed in a real GOROOT elsewhere
    			// (like /usr/lib/go/bin/go).
    			// Try to find that GOROOT by resolving the symlinks.
    			exe, err = filepath.EvalSymlinks(exe)
    			if err == nil {
    				if dir := filepath.Join(exe, "../.."); isGOROOT(dir) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ArchiveIntegrationTest.groovy

                }
            '''
            when:
            run 'zip'
            then:
            file('build/test.zip').assertDoesNotExist()
        }
    
        @Requires(UnitTestPreconditions.Symlinks)
        def "does not create empty #type array on exception"() {
            given:
            def output = "test.${type.toLowerCase()}"
            createDir('test') {
                dir1 {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  4. src/archive/tar/writer.go

    		if err != nil {
    			return err
    		}
    		if d.IsDir() {
    			return nil
    		}
    		info, err := d.Info()
    		if err != nil {
    			return err
    		}
    		// TODO(#49580): Handle symlinks when fs.ReadLinkFS is available.
    		if !info.Mode().IsRegular() {
    			return errors.New("tar: cannot add non-regular file")
    		}
    		h, err := FileInfoHeader(info, "")
    		if err != nil {
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. security/pkg/nodeagent/cache/secretcache.go

    		// with mismatched key/cert pair since we cannot atomically write multiple files. It may be
    		// possible by keeping the output in a directory with clever use of symlinks in the future,
    		// if needed.
    		sc.outputMutex.Lock()
    		defer sc.outputMutex.Unlock()
    		if resourceName == security.RootCertReqResourceName || resourceName == security.WorkloadKeyCertResourceName {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 04 08:29:46 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modindex/build.go

    	if f := ctxt.HasSubdir; f != nil {
    		return f(root, dir)
    	}
    
    	// Try using paths we received.
    	if rel, ok = hasSubdir(root, dir); ok {
    		return
    	}
    
    	// Try expanding symlinks and comparing
    	// expanded against unexpanded and
    	// expanded against expanded.
    	rootSym, _ := filepath.EvalSymlinks(root)
    	dirSym, _ := filepath.EvalSymlinks(dir)
    
    	if rel, ok = hasSubdir(rootSym, dir); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 17:39:23 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  7. cmd/common-main.go

    			err = fmt.Errorf("Unable to load TLS certificate '%s,%s': %w", certFile, keyFile, err)
    			bootLogIf(GlobalContext, err, logger.ErrorKind)
    		}
    	}
    	secureConn = true
    
    	// Certs might be symlinks, reload them every 10 seconds.
    	manager.UpdateReloadDuration(10 * time.Second)
    
    	// syscall.SIGHUP to reload the certs.
    	manager.ReloadOnSignal(syscall.SIGHUP)
    
    	return x509Certs, manager, secureConn, nil
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modindex/read.go

    }
    
    var mcache par.ErrCache[string, *Module]
    
    // openIndexModule returns the module index for modPath.
    // It will return ErrNotIndexed if the module can not be read
    // using the index because it contains symlinks.
    func openIndexModule(modroot string, ismodcache bool) (*Module, error) {
    	return mcache.Do(modroot, func() (*Module, error) {
    		fsys.Trace("openIndexModule", modroot)
    		id, err := moduleHash(modroot, ismodcache)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testshared/shared_test.go

    		} else {
    			data[i] = 'a'
    		}
    	} else {
    		// assume it's a text file
    		data = append(data, '\n')
    	}
    
    	// If the file is still a symlink from an overlay, delete it so that we will
    	// replace it with a regular file instead of overwriting the symlinked one.
    	fi, err := os.Lstat(path)
    	if err == nil && !fi.Mode().IsRegular() {
    		fi, err = os.Stat(path)
    		if err := os.Remove(path); err != nil {
    			t.Fatal(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  10. src/syscall/syscall_linux_test.go

    	}
    
    	err = os.Symlink("file1", "symlink1")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	err = syscall.Faccessat(_AT_FDCWD, "symlink1", _R_OK, _AT_SYMLINK_NOFOLLOW)
    	if err != nil {
    		t.Errorf("Faccessat SYMLINK_NOFOLLOW: unexpected error %v", err)
    	}
    
    	// We can't really test _AT_SYMLINK_NOFOLLOW, because there
    	// doesn't seem to be any way to change the mode of a symlink.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top