Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 66 for symlinks (0.17 sec)

  1. src/testing/fstest/testfs.go

    	file.Close()
    	if err != nil {
    		t.errorf("%s: Stat: %w", path, err)
    		return
    	}
    	fentry := formatEntry(entry)
    	fientry := formatInfoEntry(info)
    	// Note: mismatch here is OK for symlink, because Open dereferences symlink.
    	if fentry != fientry && entry.Type()&fs.ModeSymlink == 0 {
    		t.errorf("%s: mismatch:\n\tentry = %s\n\tfile.Stat() = %s", path, fentry, fientry)
    	}
    
    	einfo, err := entry.Info()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  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