Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,140 for filedata (0.92 sec)

  1. src/cmd/go/internal/workcmd/use.go

    	workDir := filepath.Dir(gowork) // absolute, since gowork itself is absolute
    
    	haveDirs := make(map[string][]string) // absolute → original(s)
    	for _, use := range wf.Use {
    		var abs string
    		if filepath.IsAbs(use.Path) {
    			abs = filepath.Clean(use.Path)
    		} else {
    			abs = filepath.Join(workDir, use.Path)
    		}
    		haveDirs[abs] = append(haveDirs[abs], use.Path)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 7K bytes
    - Viewed (0)
  2. src/cmd/link/link_test.go

    	tmpdir := t.TempDir()
    
    	aSrc := filepath.Join("testdata", "testIndexMismatch", "a.go")
    	bSrc := filepath.Join("testdata", "testIndexMismatch", "b.go")
    	mSrc := filepath.Join("testdata", "testIndexMismatch", "main.go")
    	aObj := filepath.Join(tmpdir, "a.o")
    	mObj := filepath.Join(tmpdir, "main.o")
    	exe := filepath.Join(tmpdir, "main.exe")
    
    	importcfgFile := filepath.Join(tmpdir, "runtime.importcfg")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/fsys/fsys.go

    	if path == "" {
    		return ""
    	}
    	if filepath.IsAbs(path) {
    		return filepath.Clean(path)
    	}
    
    	if v := filepath.VolumeName(cwd); v != "" && path[0] == filepath.Separator {
    		// On Windows filepath.Join(cwd, path) doesn't always work. In general
    		// filepath.Abs needs to make a syscall on Windows. Elsewhere in cmd/go
    		// use filepath.Join(cwd, path), but cmd/go specifically supports Windows
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. src/io/ioutil/tempfile_test.go

    			wantRePat := "^" + regexp.QuoteMeta(filepath.Join(dir, tt.wantPrefix)) + "[0-9]+" + regexp.QuoteMeta(tt.wantSuffix) + "$"
    			runTestTempDir(t, tt.pattern, wantRePat)
    		})
    	}
    
    	// Separately testing "*xyz" (which has no prefix). That is when constructing the
    	// pattern to assert on, as in the previous loop, using filepath.Join for an empty
    	// prefix filepath.Join(dir, ""), produces the pattern:
    	//     ^<DIR>[0-9]+xyz$
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 18 00:47:29 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  5. test/winbatch.go

    	// and ensure all .bat files found have exact CRLF line endings.
    	err := filepath.WalkDir(runtime.GOROOT(), func(path string, d os.DirEntry, err error) error {
    		if err != nil {
    			return err
    		}
    		if d.IsDir() && (strings.HasPrefix(d.Name(), ".") || d.Name() == "testdata") {
    			return filepath.SkipDir
    		}
    		if path == filepath.Join(runtime.GOROOT(), "pkg") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 02 16:33:57 UTC 2020
    - 2K bytes
    - Viewed (0)
  6. pkg/util/filesystem/util.go

    limitations under the License.
    */
    
    package filesystem
    
    import (
    	"path/filepath"
    )
    
    // IsPathClean will replace slashes to Separator (which is OS-specific).
    // This will make sure that all slashes are the same before comparing.
    func IsPathClean(path string) bool {
    	return filepath.ToSlash(filepath.Clean(path)) == filepath.ToSlash(path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 876 bytes
    - Viewed (0)
  7. src/os/exec/dot_test.go

    		if runtime.GOOS == "windows" {
    			executable += ".exe"
    		}
    		if err := os.WriteFile(filepath.Join(dir, executable), []byte{1, 2, 3}, 0777); err != nil {
    			t.Fatal(err)
    		}
    		t.Setenv(pathVar, dir+string(filepath.ListSeparator)+origPath)
    
    		found, err := LookPath("execabs-test")
    		if wantErrDot {
    			wantFound := filepath.Join(".", executable)
    			if found != wantFound || !errors.Is(err, ErrDot) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:19:21 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. src/cmd/go/internal/cfg/cfg.go

    	BuildContext.GOROOT = goroot
    
    	GOROOT = goroot
    	if goroot == "" {
    		GOROOTbin = ""
    		GOROOTpkg = ""
    		GOROOTsrc = ""
    	} else {
    		GOROOTbin = filepath.Join(goroot, "bin")
    		GOROOTpkg = filepath.Join(goroot, "pkg")
    		GOROOTsrc = filepath.Join(goroot, "src")
    	}
    
    	installedGOOS = runtime.GOOS
    	installedGOARCH = runtime.GOARCH
    	if isTestGo {
    		if testOS := os.Getenv("TESTGO_GOHOSTOS"); testOS != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/legacy_test.go

    			shouldError: true,
    		},
    		{
    			name:        "invalid suffix",
    			logSymLink:  filepath.Join(legacyContainerLogsDir, fmt.Sprintf("%s_%s_%s-%s", podName, podNamespace, containerName, containerID)[:251]+".invalidsuffix"),
    			expected:    "",
    			shouldError: true,
    		},
    		{
    			name:        "container ID too short",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 12:34:58 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/cycle_state_test.go

    package framework
    
    import (
    	"fmt"
    	"testing"
    )
    
    type fakeData struct {
    	data string
    }
    
    func (f *fakeData) Clone() StateData {
    	copy := &fakeData{
    		data: f.data,
    	}
    	return copy
    }
    
    var key StateKey = "fakedata_key"
    
    // createCycleStateWithFakeData creates *CycleState with fakeData.
    // The given data is used in stored fakeData.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 14 15:26:20 UTC 2022
    - 3.9K bytes
    - Viewed (0)
Back to top