Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AddExtendedPrefix (0.22 sec)

  1. src/os/export_windows_test.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package os
    
    // Export for testing.
    
    var (
    	AddExtendedPrefix  = addExtendedPrefix
    	NewConsoleFile     = newConsoleFile
    	CommandLineToArgv  = commandLineToArgv
    	AllowReadDirFileID = &allowReadDirFileID
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 14:34:38 UTC 2024
    - 363 bytes
    - Viewed (0)
  2. src/os/path_windows.go

    func fixLongPath(path string) string {
    	if windows.CanUseLongPaths {
    		return path
    	}
    	return addExtendedPrefix(path)
    }
    
    // addExtendedPrefix adds the extended path prefix (\\?\) to path.
    func addExtendedPrefix(path string) string {
    	if len(path) >= 4 {
    		if path[:4] == `\??\` {
    			// Already extended with \??\
    			return path
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/os/path_windows_test.go

    		want = strings.ReplaceAll(want, "cwd", cwd)
    
    		got := os.AddExtendedPrefix(in)
    		got = strings.ToLower(got)
    		if got != want {
    			in = strings.ReplaceAll(in, veryLong, "long")
    			got = strings.ReplaceAll(got, veryLong, "long")
    			want = strings.ReplaceAll(want, veryLong, "long")
    			t.Errorf("addExtendedPrefix(%#q) = %#q; want %#q", in, got, want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:37:32 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top