- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 179 for oldPath (2.31 sec)
-
src/cmd/go/internal/robustio/robustio_other.go
// license that can be found in the LICENSE file. //go:build !windows && !darwin package robustio import ( "os" ) func rename(oldpath, newpath string) error { return os.Rename(oldpath, newpath) } func readFile(filename string) ([]byte, error) { return os.ReadFile(filename) } func removeAll(path string) error { return os.RemoveAll(path) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 516 bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/initialization/DefaultProjectDescriptorRegistry.java
@Override public void changeDescriptorPath(Path oldPath, Path newPath) { DefaultProjectDescriptor projectDescriptor = removeProject(oldPath.toString()); projectDescriptor.setPath(newPath); addProject(projectDescriptor); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 10:39:11 UTC 2019 - 1.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/version_buildvcs_fossil.txt
cd .. mv fslckout $fslckout env PATH=$WORK${/}fakebin${:}$oldpath chmod 0755 $WORK/fakebin/fossil ! exec fossil help cd a ! go install stderr '^error obtaining VCS status: exit status 1\n\tUse -buildvcs=false to disable VCS stamping.$' rm $GOBIN/a$GOEXE cd .. env PATH=$oldpath rm $fslckout # Revision and commit time are tagged for repositories with commits.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 15:33:59 UTC 2022 - 2.4K bytes - Viewed (0) -
src/cmd/go/internal/robustio/robustio.go
// Rename is like os.Rename, but on Windows retries errors that may occur if the // file is concurrently read or overwritten. // // (See golang.org/issue/31247 and golang.org/issue/32188.) func Rename(oldpath, newpath string) error { return rename(oldpath, newpath) } // ReadFile is like os.ReadFile, but on Windows retries errors that may // occur if the file is concurrently replaced. // // (See golang.org/issue/31247 and golang.org/issue/32188.)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.9K bytes - Viewed (0) -
src/cmd/go/testdata/script/version_buildvcs_hg.txt
[short] skip env GOBIN=$WORK/gopath/bin env oldpath=$PATH cd repo/a # If there's no local repository, there's no VCS info. go install go version -m $GOBIN/a$GOEXE ! stdout hgrevision rm $GOBIN/a$GOEXE # If there is a repository, but it can't be used for some reason, # there should be an error. It should hint about -buildvcs=false. cd .. mkdir .hg env PATH=$WORK${/}fakebin${:}$oldpath chmod 0755 $WORK/fakebin/hg ! exec hg help
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 30 18:09:02 UTC 2021 - 2.2K bytes - Viewed (0) -
pkg/util/filesystem/defaultfs.go
} return &defaultFile{file}, nil } // Rename via os.Rename func (fs *DefaultFs) Rename(oldpath, newpath string) error { if !strings.HasPrefix(oldpath, fs.root) { oldpath = fs.prefix(oldpath) } if !strings.HasPrefix(newpath, fs.root) { newpath = fs.prefix(newpath) } return os.Rename(oldpath, newpath) } // MkdirAll via os.MkdirAll func (fs *DefaultFs) MkdirAll(path string, perm os.FileMode) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 03 07:38:14 UTC 2023 - 4.7K bytes - Viewed (0) -
pkg/kubelet/container/os.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 30 03:35:26 UTC 2022 - 3.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/version_buildvcs_bzr.txt
# there should be an error. It should hint about -buildvcs=false. cd .. mkdir .bzr env PATH=$WORK${/}fakebin${:}$oldpath chmod 0755 $WORK/fakebin/bzr ! exec bzr help cd a ! go install stderr '^error obtaining VCS status: exit status 1\n\tUse -buildvcs=false to disable VCS stamping.$' rm $GOBIN/a$GOEXE cd .. env PATH=$oldpath rm .bzr # If there is an empty repository in a parent directory, only "modified" is tagged. exec bzr init
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 07 03:44:02 UTC 2021 - 2.7K bytes - Viewed (0) -
cmd/kubeadm/app/phases/upgrade/staticpods_test.go
backupManifestDir: backupManifestDir, backupEtcdDir: backupEtcdDir, MoveFileFunc: moveFileFunc, }, nil } func (spm *fakeStaticPodPathManager) MoveFile(oldPath, newPath string) error { return spm.MoveFileFunc(oldPath, newPath) } func (spm *fakeStaticPodPathManager) KubernetesDir() string { return spm.kubernetesDir } func (spm *fakeStaticPodPathManager) PatchesDir() string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 32K bytes - Viewed (0) -
src/cmd/go/internal/robustio/robustio_flaky.go
// // Empirical error rates with MoveFileEx are lower under modest concurrency, so // for now we're sticking with what the os package already provides. func rename(oldpath, newpath string) (err error) { return retry(func() (err error, mayRetry bool) { err = os.Rename(oldpath, newpath) return err, isEphemeralError(err) }) } // readFile is like os.ReadFile, but retries ephemeral errors.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 2.5K bytes - Viewed (0)