Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for moveFile (0.14 sec)

  1. 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)
  2. 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)
  3. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/OutputCleaningCompilerTest.groovy

            def movedFile = tmpDirProvider.file("src/main/c/moved/main.c")
            sourceFiles = [orgFile, movedFile]
    
            when:
            compile(orgFile)
    
            then:
            objectFile(orgFile)
            !objectFile(movedFile)
    
            when:
            compile(movedFile)
            then:
            !objectFile(orgFile)
            objectFile(movedFile)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/cmd/compile/internal/ssa/tighten.go

    				continue
    			}
    			canMove[v.ID] = true
    		}
    	}
    
    	// Build data structure for fast least-common-ancestor queries.
    	lca := makeLCArange(f)
    
    	// For each moveable value, record the block that dominates all uses found so far.
    	target := f.Cache.allocBlockSlice(f.NumValues())
    	defer f.Cache.freeBlockSlice(target)
    
    	// Grab loop information.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 16 01:01:38 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top