Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 359 for dotpath (0.49 sec)

  1. src/cmd/compile/internal/typecheck/subr.go

    type dlist struct {
    	field *types.Field
    }
    
    // dotpath computes the unique shortest explicit selector path to fully qualify
    // a selection expression x.f, where x is of type t and f is the symbol s.
    // If no such path exists, dotpath returns nil.
    // If there are multiple shortest paths to the same depth, ambig is true.
    func dotpath(s *types.Sym, t *types.Type, save **types.Field, ignorecase bool) (path []dlist, ambig bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  2. src/cmd/doc/main.go

    // to the local . or .. directory.
    func isDotSlash(arg string) bool {
    	if arg == "." || arg == ".." {
    		return true
    	}
    	for _, dotPath := range dotPaths {
    		if strings.HasPrefix(arg, dotPath) {
    			return true
    		}
    	}
    	return false
    }
    
    // importDir is just an error-catching wrapper for build.ImportDir.
    func importDir(dir string) *build.Package {
    	pkg, err := build.ImportDir(dir, build.ImportComment)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/expr.go

    		}
    		return nil
    	}
    
    	var f *types.Field
    	p, _ := dotpath(sym, typ, &f, true)
    	if p == nil || f.IsMethod() {
    		base.Errorf("unknown field '%v' in struct literal of type %v", sym, typ)
    		return nil
    	}
    
    	// dotpath returns the parent embedded types in reverse order.
    	var ep []string
    	for ei := len(p) - 1; ei >= 0; ei-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. src/os/exec/lp_windows_test.go

    	comPath := filepath.Join(t.TempDir(), "example.com")
    	batPath := comPath + ".bat"
    	installBat(t, batPath)
    
    	cmd := exec.Command(comPath)
    	out, err := cmd.CombinedOutput()
    	t.Logf("%v: %v\n%s", cmd, err, out)
    	if !errors.Is(err, fs.ErrNotExist) {
    		t.Errorf("Command(%#q).Run: %v\nwant fs.ErrNotExist", comPath, err)
    	}
    
    	resolved, err := exec.LookPath(comPath)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:38:12 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  5. pkg/volume/fc/fc_util.go

    	var devices []string
    	// devicePath might be like /dev/mapper/mpathX. Find destination.
    	dstPath, err := c.io.EvalSymlinks(devicePath)
    	if err != nil {
    		return err
    	}
    	// Find slave
    	if strings.HasPrefix(dstPath, "/dev/dm-") {
    		devices = c.deviceUtil.FindSlaveDevicesOnMultipath(dstPath)
    		if err := util.deleteMultipathDevice(c.exec, dstPath); err != nil {
    			return err
    		}
    	} else {
    		// Add single devicepath to devices
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.8K bytes
    - Viewed (0)
  6. cmd/naughty-disk_test.go

    	if err := d.calcError(); err != nil {
    		return RenameDataResp{}, err
    	}
    	return d.disk.RenameData(ctx, srcVolume, srcPath, fi, dstVolume, dstPath, opts)
    }
    
    func (d *naughtyDisk) RenameFile(ctx context.Context, srcVolume, srcPath, dstVolume, dstPath string) error {
    	if err := d.calcError(); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/PostPath.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.asRequestBody
    import okio.Path.Companion.toPath
    import okio.buffer
    import okio.fakefilesystem.FakeFileSystem
    
    class PostPath {
      private val client = OkHttpClient()
      private val fileSystem = FakeFileSystem()
      val path = "test.json".toPath()
    
      fun run() {
        fileSystem.write(path) {
          writeUtf8("{}")
        }
    
        val request =
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/cgotest/overlaydir.go

    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    		// If the OS supports symlinks, use them instead of copying bytes.
    		if err := os.Symlink(srcPath, dstPath); err == nil {
    			return nil
    		}
    
    		// Otherwise, copy the bytes.
    		src, err := os.Open(srcPath)
    		if err != nil {
    			return err
    		}
    		defer src.Close()
    
    		dst, err := os.OpenFile(dstPath, os.O_WRONLY|os.O_CREATE|os.O_EXCL, perm)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/internal/bootstrap_test/overlaydir_test.go

    		// If we add a file in the overlay, we don't want to add it in the original.
    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    		// If we can use a hard link, do that instead of copying bytes.
    		// Go builds don't like symlinks in some cases, such as go:embed.
    		if err := os.Link(srcPath, dstPath); err == nil {
    			return nil
    		}
    
    		// Otherwise, copy the bytes.
    		src, err := os.Open(srcPath)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:35:05 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. cmd/storage-rest-client.go

    func (client *storageRESTClient) RenameData(ctx context.Context, srcVolume, srcPath string, fi FileInfo,
    	dstVolume, dstPath string, opts RenameOptions,
    ) (res RenameDataResp, err error) {
    	params := RenameDataHandlerParams{
    		DiskID:    *client.diskID.Load(),
    		SrcVolume: srcVolume,
    		SrcPath:   srcPath,
    		DstPath:   dstPath,
    		DstVolume: dstVolume,
    		FI:        fi,
    		Opts:      opts,
    	}
    	var resp *RenameDataResp
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.4K bytes
    - Viewed (0)
Back to top