Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for indir (0.04 sec)

  1. src/cmd/go/internal/modload/init.go

    	}
    	dir = filepath.Clean(dir)
    	if rel := search.InDir(dir, cfg.BuildContext.GOROOT); rel != "" {
    		// Don't suggest creating a module from $GOROOT/.git/config
    		// or a config file found in any parent of $GOROOT (see #34191).
    		return "", ""
    	}
    	for {
    		for _, name := range altConfigs {
    			if fi, err := fsys.Stat(filepath.Join(dir, name)); err == nil && !fi.IsDir() {
    				return dir, name
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/load.go

    		}
    
    		modRoot := findModuleRoot(absDir)
    		found := false
    		for _, mainModuleRoot := range modRoots {
    			if mainModuleRoot == modRoot {
    				found = true
    				break
    			}
    		}
    		if !found && search.InDir(absDir, cfg.GOROOTsrc) == "" && pathInModuleCache(ctx, absDir, rs) == "" {
    			m.Dirs = []string{}
    			scope := "main module or its selected dependencies"
    			if inWorkspaceMode() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  3. src/cmd/go/internal/test/test.go

    			}
    			if a.Package.Root == "" || search.InDir(name, a.Package.Root) == "" {
    				// Do not recheck files outside the module, GOPATH, or GOROOT root.
    				break
    			}
    			fmt.Fprintf(h, "stat %s %x\n", name, hashStat(name))
    		case "open":
    			if !filepath.IsAbs(name) {
    				name = filepath.Join(pwd, name)
    			}
    			if a.Package.Root == "" || search.InDir(name, a.Package.Root) == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  4. src/cmd/go/go_test.go

    			work.AllowInstall = func(a *work.Action) error {
    				if cfg.BuildN {
    					return nil
    				}
    
    				rel := search.InDir(a.Target, testGOROOT)
    				if rel == "" {
    					return nil
    				}
    
    				callerPos := ""
    				if _, file, line, ok := runtime.Caller(1); ok {
    					if shortFile := search.InDir(file, filepath.Join(testGOROOT, "src")); shortFile != "" {
    						file = shortFile
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  5. cmd/object-api-listobjects_test.go

    		},
    		// ListObjectsResult-27.
    		// Prefix is set to "Asia/India/" in the testCase, and delimiter is set to forward slash '/' (testCase 59).
    		27: {
    			IsTruncated: false,
    			Objects: []ObjectInfo{
    				{Name: "Asia/India/India-summer-photos-1"},
    			},
    			Prefixes: []string{"Asia/India/Karnataka/"},
    		},
    		// ListObjectsResult-28.
    		// Marker is set to "Asia/India/India-summer-photos-1" and delimiter set in the testCase, (testCase 60).
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  6. src/go/build/build.go

    	if f := ctxt.IsAbsPath; f != nil {
    		return f(path)
    	}
    	return filepath.IsAbs(path)
    }
    
    // isDir calls ctxt.IsDir (if not nil) or else uses os.Stat.
    func (ctxt *Context) isDir(path string) bool {
    	if f := ctxt.IsDir; f != nil {
    		return f(path)
    	}
    	fi, err := os.Stat(path)
    	return err == nil && fi.IsDir()
    }
    
    // hasSubdir calls ctxt.HasSubdir (if not nil) or else uses
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  7. src/cmd/dist/build.go

    		switch {
    		case err != nil:
    			// ignore
    		case d.IsDir() && (d.Name() == "vendor" || d.Name() == "testdata"):
    			return filepath.SkipDir
    		case d.IsDir() && d.Name() != "dist":
    			// Remove generated binary named for directory, but not dist out from under us.
    			exe := filepath.Join(path, d.Name())
    			if info, err := os.Stat(exe); err == nil && !info.IsDir() {
    				xremove(exe)
    			}
    			xremove(exe + ".exe")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  8. src/os/os_test.go

    				}
    				found = true
    				lstat, err := Lstat(dir + "/" + m)
    				if err != nil {
    					t.Fatal(err)
    				}
    				if n.IsDir() != lstat.IsDir() {
    					t.Errorf("%s: IsDir=%v, want %v", m, n.IsDir(), lstat.IsDir())
    				}
    				if n.Type() != lstat.Mode().Type() {
    					t.Errorf("%s: IsDir=%v, want %v", m, n.Type(), lstat.Mode().Type())
    				}
    				info, err := n.Info()
    				if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    		return path, err
    	}
    	if osIsNotExist(err) {
    		// Disk not found create it.
    		if err = mkdirAll(path, 0o777, ""); err != nil {
    			return path, err
    		}
    	}
    	if fi != nil && !fi.IsDir() {
    		return path, errDiskNotDir
    	}
    
    	return path, nil
    }
    
    // Make Erasure backend meta volumes.
    func makeFormatErasureMetaVolumes(disk StorageAPI) error {
    	if disk == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  10. cmd/object-api-datatypes_gen.go

    				if err != nil {
    					err = msgp.WrapError(err, "ActualSize")
    					return
    				}
    			}
    		case "IsDir":
    			z.IsDir, bts, err = msgp.ReadBoolBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "IsDir")
    				return
    			}
    		case "ETag":
    			z.ETag, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "ETag")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
Back to top