- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for Schmid (0.49 sec)
-
src/cmd/go/internal/work/shell.go
if err == nil { fi, err := f.Stat() if err == nil { mode = fi.Mode() & 0777 } name := f.Name() f.Close() os.Remove(name) } if err := os.Chmod(src, mode); err == nil { if err := os.Rename(src, dst); err == nil { if cfg.BuildX { sh.ShowCmd("", "mv %s %s", src, dst) } return nil } } return sh.CopyFile(dst, src, perm, force)
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/modfetch/fetch.go
if err == nil && info.Mode()&0222 != 0 { dirs = append(dirs, pathMode{path, info.Mode()}) } } return nil }) // Run over list backward to chmod children before parents. for i := len(dirs) - 1; i >= 0; i-- { os.Chmod(dirs[i].path, dirs[i].mode&^0222) } } // RemoveAll removes a directory written by Download or Unzip, first applying // any permission changes needed to do so.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 30.3K bytes - Viewed (0) -
src/cmd/go/go_test.go
// make them writable in order to remove content. filepath.WalkDir(dir, func(path string, info fs.DirEntry, err error) error { // chmod not only directories, but also things that we couldn't even stat // due to permission errors: they may also be unreadable directories. if err != nil || info.IsDir() { os.Chmod(path, 0777) } return nil }) return robustio.RemoveAll(dir) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 81.1K bytes - Viewed (0) -
src/cmd/go/internal/script/cmds.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 28.5K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/select.go
// best-effort basis (ignoring failures). dir := filepath.Dir(old) info, err := os.Stat(dir) if err != nil { return err } if err := os.Chmod(dir, info.Mode()|writeBits); err != nil { return err } defer os.Chmod(dir, info.Mode()) // Note: create the file writable, so that a racing go command // doesn't get an error before we store the actual data.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:25:05 UTC 2024 - 23.4K bytes - Viewed (0) -
src/cmd/dist/test.go
if mode&0222 != 0 && (mode.IsDir() || mode.IsRegular()) { dirs = append(dirs, pathMode{path, mode}) } return nil }) // Run over list backward to chmod children before parents. for i := len(dirs) - 1; i >= 0; i-- { err := os.Chmod(dirs[i].path, dirs[i].mode&^0222) if err != nil { dirs = dirs[i:] // Only undo what we did so far. undo() fatalf("failed to make GOROOT read-only: %v", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 16:01:35 UTC 2024 - 50K bytes - Viewed (0)