- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 51 for destPath (0.14 sec)
-
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) -
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) -
subprojects/core/src/test/groovy/org/gradle/api/internal/file/FileOrUriNotationConverterTest.groovy
testFile == object } def "with Path returns the File it represents"() { setup: def testPath = folder.createFile("test1").toPath() when: def object = parse(testPath) then: object instanceof File testPath.toFile() == object } def "with RegularFile returns the File it represents"() { setup:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 19 16:59:26 UTC 2023 - 5.7K bytes - Viewed (0) -
src/internal/trace/gc_test.go
} } } t.Run("V2", func(t *testing.T) { testPath := "testdata/tests/go122-gc-stress.test" r, _, err := testtrace.ParseFile(testPath) if err != nil { t.Fatalf("malformed test %s: bad trace file: %v", testPath, err) } var events []trace.Event tr, err := trace.NewReader(r) if err != nil { t.Fatalf("malformed test %s: bad trace file: %v", testPath, err) } for { ev, err := tr.ReadEvent()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 5.3K bytes - Viewed (0) -
src/internal/trace/testdata/mktests.go
return err } if skip { continue } fmt.Fprintf(os.Stderr, "generating %s... ", name) // Get the test path. testPath := filepath.Join(genroot, fmt.Sprintf("%s.test", name)) // Run generator. cmd := exec.Command("go", "run", path, testPath) if out, err := cmd.CombinedOutput(); err != nil { return fmt.Errorf("running generator %s: %v:\n%s", name, err, out) } fmt.Fprintln(os.Stderr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 3.7K bytes - Viewed (0) -
src/os/exec/lp_windows_test.go
for _, f := range files { dstPath := filepath.Join(root, f) dir := filepath.Dir(dstPath) if err := os.MkdirAll(dir, 0755); err != nil { t.Fatal(err) } if os.IsPathSeparator(f[len(f)-1]) { continue // directory and PATH entry only. } if strings.EqualFold(filepath.Ext(f), ".bat") { installBat(t, dstPath) } else { installExe(t, dstPath) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 19:38:12 UTC 2023 - 16.3K bytes - Viewed (0) -
cmd/lock-rest-server-common_test.go
func TestLockRpcServerRemoveEntry(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() testPath, locker, _ := createLockTestServer(ctx, t) defer os.RemoveAll(testPath) lockRequesterInfo1 := lockRequesterInfo{ Owner: "owner", Writer: true, UID: "0123-4567", Timestamp: UTCNow(),
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Mar 23 17:26:21 UTC 2023 - 3.1K bytes - Viewed (0) -
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) -
cmd/storage-interface.go
ReadXL(ctx context.Context, volume, path string, readData bool) (RawFileInfo, error) RenameData(ctx context.Context, srcVolume, srcPath string, fi FileInfo, dstVolume, dstPath string, opts RenameOptions) (RenameDataResp, error) // File operations. ListDir(ctx context.Context, origvolume, volume, dirPath string, count int) ([]string, error)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 5K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter_test.go
} return outname } func testPath(t *testing.T, path, srcDir string) *types.Package { t0 := time.Now() fset := token.NewFileSet() pkg, err := Import(fset, make(map[string]*types.Package), path, srcDir, nil) if err != nil { t.Errorf("testPath(%s): %s", path, err) return nil } t.Logf("testPath(%s): %v", path, time.Since(t0)) return pkg }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 21.9K bytes - Viewed (0)