- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MoveFile (0.08 sec)
-
cmd/kubeadm/app/util/copy.go
if err != nil { return err } defer func() { _ = destFile.Close() }() _, err = io.Copy(destFile, sourceFile) return err } // MoveFile moves a file from src to dest. func MoveFile(src, dest string) error { err := os.Rename(src, dest) if err != nil && strings.Contains(err.Error(), "invalid cross-device link") {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 22 01:42:57 UTC 2024 - 1.9K bytes - Viewed (0) -
platforms/jvm/toolchains-jvm/src/main/java/org/gradle/jvm/toolchain/internal/install/SecureFileDownloader.java
}); try { moveFile(targetFile, downloadFile); } catch (IOException e) { throw new GradleException("Unable to move downloaded file to target destination", e); } } finally { downloadFile.delete(); } } private void moveFile(File targetFile, File downloadFile) throws IOException { try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jul 28 16:17:59 UTC 2023 - 5.6K bytes - Viewed (0)