- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for MoveFile (0.17 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/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/transaction/CompileTransaction.java
for (File fileToDelete : collectFilesToDelete(classesToDelete, resourcesToDelete)) { File stashedFile = new File(stashDirectory, fileToDelete.getName() + ".uniqueId" + uniqueId++); moveFile(fileToDelete, stashedFile); stashedFiles.add(new StashedFile(fileToDelete, stashedFile)); } return stashedFiles; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 13.3K 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) -
platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GFileUtils.java
} finally { IoActions.closeQuietly(out); } } public static void moveFile(File source, File destination) { try { FileUtils.moveFile(source, destination); } catch (IOException e) { throw new UncheckedIOException(e); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 10.8K bytes - Viewed (0) -
cmd/kubeadm/app/phases/upgrade/staticpods.go
} // MoveFile should move a file from oldPath to newPath func (spm *KubeStaticPodPathManager) MoveFile(oldPath, newPath string) error { return kubeadmutil.MoveFile(oldPath, newPath) } // KubernetesDir should point to the directory Kubernetes owns for storing various configuration files
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 10:07:41 UTC 2024 - 30.7K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/util/GFileUtils.java
IoActions.closeQuietly(out); } } public static void moveFile(File source, File destination) { logDeprecation(); moveFileInternal(source, destination); } private static void moveFileInternal(File source, File destination) { try { FileUtils.moveFile(source, destination); } catch (IOException e) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 13.9K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/working_with_files.adoc
In this example, the `moveFile` task uses the `Copy` task type to specify the source and destination directories. Inside the `doLast` closure, it uses `File.renameTo()` to move the file from the source directory to the destination directory: [source,groovy] ---- task moveFile { doLast { def sourceFile = file('source.txt')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 24 04:19:09 UTC 2024 - 70.5K bytes - Viewed (0) -
cmd/kubeadm/app/phases/upgrade/staticpods_test.go
tempManifestDir: upgradedManifestDir, 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 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 32K bytes - Viewed (0) -
src/syscall/syscall_windows.go
//sys CreateDirectory(path *uint16, sa *SecurityAttributes) (err error) = CreateDirectoryW //sys RemoveDirectory(path *uint16) (err error) = RemoveDirectoryW //sys DeleteFile(path *uint16) (err error) = DeleteFileW //sys MoveFile(from *uint16, to *uint16) (err error) = MoveFileW //sys GetComputerName(buf *uint16, n *uint32) (err error) = GetComputerNameW //sys SetEndOfFile(handle Handle) (err error) //sys GetSystemTimeAsFileTime(time *Filetime)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:46 UTC 2024 - 52.7K bytes - Viewed (0) -
src/syscall/zsyscall_windows.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:46 UTC 2024 - 56.3K bytes - Viewed (0)