- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for moveOrCopyFile (0.21 sec)
-
src/cmd/go/internal/work/build_test.go
dirGIDFile := filepath.Join(setgiddir, "setgid") if err := sh.moveOrCopyFile(dirGIDFile, pkgfile.Name(), 0666, true); err != nil { t.Fatalf("moveOrCopyFile: %v", err) } got := strings.TrimSpace(cmdBuf.String()) want := sh.fmtCmd("", "cp %s %s", pkgfile.Name(), dirGIDFile) if got != want { t.Fatalf("moveOrCopyFile(%q, %q): want %q, got %q", dirGIDFile, pkgfile.Name(), want, got) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 8.3K bytes - Viewed (0) -
src/cmd/go/internal/work/shell.go
// Try not to use this unless there's really no sensible Action available. func (b *Builder) BackgroundShell() *Shell { return b.backgroundSh } // moveOrCopyFile is like 'mv src dst' or 'cp src dst'. func (sh *Shell) moveOrCopyFile(dst, src string, perm fs.FileMode, force bool) error { if cfg.BuildN { sh.ShowCmd("", "mv %s %s", src, dst) return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
src/cmd/go/internal/work/exec.go
dir, _ := filepath.Split(a.Target) if dir != "" { if err := sh.Mkdir(dir); err != nil { return err } } if !a.buggyInstall { defer b.cleanup(a1) } return sh.moveOrCopyFile(a.Target, a1.built, perm, false) } // AllowInstall returns a non-nil error if this invocation of the go command is // allowed to install a.Target. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 14:46:37 UTC 2024 - 105.6K bytes - Viewed (0)