Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for moveFile (0.27 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/telemetry/dir.go

    }
    
    func (d Dir) DebugDir() string {
    	return d.debug
    }
    
    func (d Dir) ModeFile() string {
    	return d.modefile
    }
    
    // SetMode updates the telemetry mode with the given mode.
    // Acceptable values for mode are "on", "off", or "local".
    //
    // SetMode always writes the mode file, and explicitly records the date at
    // which the modefile was updated. This means that calling SetMode with "on"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:13:09 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	r1, _, e1 := syscall.Syscall(procMoveFileExW.Addr(), 3, uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(to)), uintptr(flags))
    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func MoveFile(from *uint16, to *uint16) (err error) {
    	r1, _, e1 := syscall.Syscall(procMoveFileW.Addr(), 2, uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(to)), 0)
    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/arm64/asm7.go

    // These optimizations need to be synchronized with the asmout function.
    func (o *Optab) size(ctxt *obj.Link, p *obj.Prog) int {
    	// Optimize adrp+add+ld/st to adrp+ld/st(offset).
    	sz := movesize(p.As)
    	if sz != -1 {
    		// Relocations R_AARCH64_LDST{64,32,16,8}_ABS_LO12_NC can only generate 8-byte, 4-byte,
    		// 2-byte and 1-byte aligned addresses, so the address of load/store must be aligned.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 201.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewrite.go

    			return true
    		}
    	case OpSP:
    		return p2.Op == OpAddr || p2.Op == OpLocalAddr || p2.Op == OpArg || p2.Op == OpArgIntReg || p2.Op == OpSP
    	}
    	return false
    }
    
    // moveSize returns the number of bytes an aligned MOV instruction moves.
    func moveSize(align int64, c *Config) int64 {
    	switch {
    	case align%8 == 0 && c.PtrSize == 8:
    		return 8
    	case align%4 == 0:
    		return 4
    	case align%2 == 0:
    		return 2
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
Back to top