Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 162 for renameat (0.45 sec)

  1. src/cmd/go/internal/modfetch/fetch.go

    	// or lost after a file system crash. Re-hash the zip without downloading.
    	if zipExists {
    		return hashZip(mod, zipfile, ziphashfile)
    	}
    
    	// From here to the os.Rename call below is functionally almost equivalent to
    	// renameio.WriteToFile, with one key difference: we want to validate the
    	// contents of the file (by hashing it) before we commit it. Because the file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/export_test.go

    		c.fe = TestFrontend{
    			t:    c.tb,
    			ctxt: c.config.ctxt,
    			f:    fn,
    		}
    	}
    	return c.fe
    }
    
    func (c *Conf) Temp(typ *types.Type) *ir.Name {
    	n := ir.NewNameAt(src.NoXPos, &types.Sym{Name: "aFakeAuto"}, typ)
    	n.Class = ir.PAUTO
    	return n
    }
    
    // TestFrontend is a test-only frontend.
    // It assumes 64 bit integers and pointers.
    type TestFrontend struct {
    	t    testing.TB
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-api/src/main/java/org/gradle/declarative/dsl/model/annotations/Restricted.java

    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    @Target({ElementType.TYPE, ElementType.METHOD})
    @Retention(RetentionPolicy.RUNTIME)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 19 07:57:00 UTC 2024
    - 1005 bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GFileUtils.java

            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
        public static void moveExistingFile(File source, File destination) {
            boolean rename = source.renameTo(destination);
            if (!rename) {
                moveFile(source, destination);
            }
        }
    
        /**
         * If the destination file exists, then this method will overwrite it.
         *
    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. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy

            if (hashAfter == hashBefore) {
                // Already published
                return
            }
    
            assert !file.exists() || file.delete()
            assert tmpFile.renameTo(file)
            onPublish(file)
        }
    
        private void writeContents(output, Closure cl) {
            output.withWriter("utf-8", cl)
        }
    
        private void writeZipped(TestFile testFile, Closure cl) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. cmd/os-instrumented.go

    func MkdirAll(dirPath string, mode os.FileMode, baseDir string) (err error) {
    	defer updateOSMetrics(osMetricMkdirAll, dirPath)(err)
    	return osMkdirAll(dirPath, mode, baseDir)
    }
    
    // Rename captures time taken to call os.Rename
    func Rename(src, dst string) (err error) {
    	defer updateOSMetrics(osMetricRename, src, dst)(err)
    	return RenameSys(src, dst)
    }
    
    // OpenFile captures time taken to call os.OpenFile
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 15 01:09:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/InterpreterTest.kt

                }
            }
        }
    
        private
        fun relocate(location: File): File {
            val newLocation = location.parentFile.resolve(location.name + "-relocated")
            location.renameTo(newLocation)
            return newLocation
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesBetweenBuildsFileSystemWatchingIntegrationTest.groovy

            then:
            targetFile.text == "Hello Old World!"
            executedAndNotSkipped ":run"
    
            expect:
            succeeds "clean"
    
            when:
            originalDir.renameTo(renamedDir)
            settingsFile.text = buildCache.localCacheConfiguration()
            buildFile.text = buildFileContents
            sourceFile.text = "Hello New World!"
    
            runWithWatchingEnabled "run"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/GroovyScriptClassCompiler.java

                    String renamed = entry.getPath().getLastName();
                    if (renamed.startsWith(RemappingScriptSource.MAPPED_SCRIPT)) {
                        renamed = className + renamed.substring(RemappingScriptSource.MAPPED_SCRIPT.length());
                    }
                    byte[] content = classData.getClassContent();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:23:24 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. cmd/naughty-disk_test.go

    		return err
    	}
    	return d.disk.AppendFile(ctx, volume, path, buf)
    }
    
    func (d *naughtyDisk) RenameData(ctx context.Context, srcVolume, srcPath string, fi FileInfo, dstVolume, dstPath string, opts RenameOptions) (RenameDataResp, error) {
    	if err := d.calcError(); err != nil {
    		return RenameDataResp{}, err
    	}
    	return d.disk.RenameData(ctx, srcVolume, srcPath, fi, dstVolume, dstPath, opts)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top