Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for rootfile (0.26 sec)

  1. cmd/data-usage_test.go

    )
    
    type usageTestFile struct {
    	name string
    	size int
    }
    
    func TestDataUsageUpdate(t *testing.T) {
    	base := t.TempDir()
    	const bucket = "bucket"
    	files := []usageTestFile{
    		{name: "rootfile", size: 10000},
    		{name: "rootfile2", size: 10000},
    		{name: "dir1/d1file", size: 2000},
    		{name: "dir2/d2file", size: 300},
    		{name: "dir1/dira/dafile", size: 100000},
    		{name: "dir1/dira/dbfile", size: 200000},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Mar 27 15:10:40 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/PostFile.kt

    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.asRequestBody
    
    class PostFile {
      private val client = OkHttpClient()
    
      fun run() {
        val file = File("README.md")
    
        val request =
          Request(
            url = "https://api.github.com/markdown/raw".toHttpUrl(),
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTaskWiringIntegrationTest.groovy

                task producer(type: InputFileTask) {
                    inFile = file("in.txt")
                    outFile = layout.buildDirectory.file("out.txt")
                }
                task transformer(type: InputTask) {
                    inValue = producer.outFile.map { f -> f.asFile.text as Integer }.map { i -> i + 2 }
                    outFile = file("out.txt")
                }
            """
            def input = file("in.txt")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. cmd/erasure-common.go

    			}
    			select {
    			case <-ctx.Done():
    			case gotFile, ok := <-resps[i]:
    				if !ok {
    					continue
    				}
    				if gotFile.Error != "" || !gotFile.Exists {
    					continue
    				}
    				if gotFile.File != wantFile || gotFile.Bucket != req.Bucket || gotFile.Prefix != req.Prefix {
    					continue
    				}
    				quorum++
    				if toAdd.Modtime.After(gotFile.Modtime) || len(gotFile.Data) < len(toAdd.Data) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDependencyInferenceIntegrationTest.groovy

            taskTypeWithIntInputProperty()
            buildFile << """
                tasks.register("b", InputTask) {
                    inValue = outFile.locationOnly.map { it.asFile.name.length() }
                    outFile = file("out.txt")
                }
            """
    
            when:
            run("b")
    
            then:
            result.assertTasksExecuted(":b")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:20:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/generate_workspace.txt

    go 1.22
    
    use ./mod
    -- mod/go.mod --
    module example.com/mod
    -- mod/gen.go --
    //go:generate go run gen.go got.txt
    
    package main
    
    import "os"
    
    func main() {
        outfile := os.Args[1]
        os.WriteFile(outfile, []byte("Hello World!\n"), 0644)
    }
    -- want.txt --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 29 19:39:24 UTC 2024
    - 437 bytes
    - Viewed (0)
  7. src/cmd/go/internal/bug/bug.go

    	srcfile := filepath.Join(tempdir, "go-bug.c")
    	outfile := filepath.Join(tempdir, "go-bug")
    	err := os.WriteFile(srcfile, src, 0644)
    	if err != nil {
    		return
    	}
    	defer os.Remove(srcfile)
    	cmd := exec.Command("gcc", "-o", outfile, srcfile)
    	if _, err = cmd.CombinedOutput(); err != nil {
    		return
    	}
    	defer os.Remove(outfile)
    
    	cmd = exec.Command("ldd", outfile)
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

        }
    
        def "task is cacheable after previous failure"() {
            buildFile << """
                task foo {
                    def outFile = project.file("out.txt")
                    outputs.file(outFile)
                    outputs.cacheIf { true }
                    doLast {
                        outFile << "xxx"
                        if (System.getProperty("fail")) {
                            throw new RuntimeException("Boo!")
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

        def "task @InputFiles file collection closure is called once only when task executes"() {
            taskTypeWithInputFileCollection()
            buildFile """
                task merge(type: InputFilesTask) {
                    outFile = file("out.txt")
                    inFiles.from {
                        println("calculating value")
                        return 'in.txt'
                    }
                }
    """
            file("in.txt").text = "in"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildSymlinkHandlingIntegrationTest.groovy

            file('in.txt').touch()
            file("in-dir").createDir()
            def outFile = file("out.txt")
            def copy = file("other")
    
            given:
            run("work")
            run("work")
            result.assertTasksSkipped(":work")
    
            when:
            outFile.copyTo(copy)
            outFile.delete()
            outFile.createLink(copy)
            run("work")
    
    
            /*
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 14:30:36 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top