Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for moveFiles (0.23 sec)

  1. cmd/kubeadm/app/phases/upgrade/postupgrade_test.go

    func (cc *componentConfig) IsUserSupplied() bool {
    	return false
    }
    func (cc *componentConfig) SetUserSupplied(userSupplied bool) {
    	cc.userSupplied = userSupplied
    }
    
    // moveFiles moves files from one directory to another.
    func moveFiles(files map[string]string) error {
    	filesToRecover := make(map[string]string, len(files))
    	for from, to := range files {
    		if err := os.Rename(from, to); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 11:40:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/syscall/syscall_windows.go

    //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)
  8. android/guava/src/com/google/common/io/Files.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Provides utility methods for working with {@linkplain File files}.
     *
     * <p>{@link java.nio.file.Path} users will find similar utilities in {@link MoreFiles} and the
     * JDK's {@link java.nio.file.Files} class.
     *
     * @author Chris Nokleberg
     * @author Colin Decker
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/Files.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Provides utility methods for working with {@linkplain File files}.
     *
     * <p>{@link java.nio.file.Path} users will find similar utilities in {@link MoreFiles} and the
     * JDK's {@link java.nio.file.Files} class.
     *
     * @author Chris Nokleberg
     * @author Colin Decker
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  10. src/syscall/zsyscall_windows.go

    	procLocalFree                          = modkernel32.NewProc("LocalFree")
    	procMapViewOfFile                      = modkernel32.NewProc("MapViewOfFile")
    	procMoveFileW                          = modkernel32.NewProc("MoveFileW")
    	procOpenProcess                        = modkernel32.NewProc("OpenProcess")
    	procPostQueuedCompletionStatus         = modkernel32.NewProc("PostQueuedCompletionStatus")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (1)
Back to top