Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for rooted (0.47 sec)

  1. src/internal/filepathlite/path.go

    					out.w--
    				}
    			case !rooted:
    				// cannot backtrack, but not rooted, so append .. element.
    				if out.w > 0 {
    					out.append(Separator)
    				}
    				out.append('.')
    				out.append('.')
    				dotdot = out.w
    			}
    		default:
    			// real path element.
    			// add slash if needed
    			if rooted && out.w != 1 || !rooted && out.w != 0 {
    				out.append(Separator)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/net/dnsconfig.go

    var getHostname = os.Hostname // variable for testing
    
    type dnsConfig struct {
    	servers       []string      // server addresses (in host:port form) to use
    	search        []string      // rooted suffixes to append to local name
    	ndots         int           // number of dots in name to trigger absolute lookup
    	timeout       time.Duration // wait before giving up on a query, including retries
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/path/filepath/path.go

    // uses slash separated paths.
    func WalkDir(root string, fn fs.WalkDirFunc) error {
    	info, err := os.Lstat(root)
    	if err != nil {
    		err = fn(root, nil, err)
    	} else {
    		err = walkDir(root, fs.FileInfoToDirEntry(info), fn)
    	}
    	if err == SkipDir || err == SkipAll {
    		return nil
    	}
    	return err
    }
    
    // Walk walks the file tree rooted at root, calling fn for each file or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. src/internal/filepathlite/path_windows.go

    )
    
    func IsPathSeparator(c uint8) bool {
    	return c == '\\' || c == '/'
    }
    
    func isLocal(path string) bool {
    	if path == "" {
    		return false
    	}
    	if IsPathSeparator(path[0]) {
    		// Path rooted in the current drive.
    		return false
    	}
    	if stringslite.IndexByte(path, ':') >= 0 {
    		// Colons are only valid when marking a drive letter ("C:foo").
    		// Rejecting any path with a colon is conservative but safe.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. src/net/dnsclient_unix.go

    func (conf *dnsConfig) nameList(name string) []string {
    	// Check name length (see isDomainName).
    	l := len(name)
    	rooted := l > 0 && name[l-1] == '.'
    	if l > 254 || l == 254 && !rooted {
    		return nil
    	}
    
    	// If name is rooted (trailing dot), try only that name.
    	if rooted {
    		if avoidDNS(name) {
    			return nil
    		}
    		return []string{name}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/NativeCompilerTest.groovy

            when:
            def outputFile = compiler.getOutputFileDir(sourceFile, testDir, extension)
    
            then:
            // Creates directory
            outputFile.parentFile.exists()
            // Rooted under test directory
            outputFile.parentFile.parentFile == testDir
            // TODO: Test for MD5 directory name?
            outputFile.name == "source$extension"
    
            where:
            extension | _
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. src/crypto/tls/key_schedule.go

    		// Rather than calling BytesOrPanic, we explicitly handle this error, in
    		// order to provide a reasonable error message. It should be basically
    		// impossible for this to panic, and routing errors back through the
    		// tree rooted in this function is quite painful. The labels are fixed
    		// size, and the context is either a fixed-length computed hash, or
    		// parsed from a field which has the same length limitation. As such, an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. src/os/path_windows_test.go

    		if err != nil {
    			t.Fatalf("Open(%q) failed: %v", test, err)
    		}
    		dir.Close()
    	}
    }
    
    func testMkdirAllAtRoot(t *testing.T, root string) {
    	// Create a unique-enough directory name in root.
    	base := fmt.Sprintf("%s-%d", t.Name(), os.Getpid())
    	path := filepath.Join(root, base)
    	if err := os.MkdirAll(path, 0777); err != nil {
    		t.Fatalf("MkdirAll(%q) failed: %v", path, err)
    	}
    	// Clean up
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:37:32 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. src/cmd/go/internal/help/helpdoc.go

    	Short:     "package lists and patterns",
    	Long: `
    Many commands apply to a set of packages:
    
    	go <action> [packages]
    
    Usually, [packages] is a list of import paths.
    
    An import path that is a rooted path or that begins with
    a . or .. element is interpreted as a file system path and
    denotes the package in that directory.
    
    Otherwise, the import path P denotes the package found in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  10. cmd/object-api-utils.go

    // but may produce false positives on non-trivial paths.
    func pathNeedsClean(path []byte) bool {
    	if len(path) == 0 {
    		return true
    	}
    
    	rooted := path[0] == '/'
    	n := len(path)
    
    	r, w := 0, 0
    	if rooted {
    		r, w = 1, 1
    	}
    
    	for r < n {
    		switch {
    		case path[r] > 127:
    			// Non ascii.
    			return true
    		case path[r] == '/':
    			// multiple / elements
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top