Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,328 for filea (0.04 sec)

  1. android/guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

        File dir2 = newFile("dir-1/dir-2");
    
        assertThat(Files.fileTraverser().breadthFirst(rootDir))
            .containsExactly(rootDir, fileA, fileB, dir1, dir2);
      }
    
      @CanIgnoreReturnValue
      private File newDir(String name) {
        File file = new File(rootDir, name);
        file.mkdir();
        return file;
      }
    
      @CanIgnoreReturnValue
      private File newFile(String name) throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 20:17:27 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py

        pathb = tmp_path / "testb.txt"
        patha.write_text("<file content>")
        pathb.write_text("<file b content>")
    
        client = TestClient(app)
        with patha.open("rb") as filea, pathb.open("rb") as fileb:
            response = client.post(
                "/files/",
                data={"token": "foo"},
                files={"file": filea, "fileb": ("testb.txt", fileb, "text/plain")},
            )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. src/mime/multipart/formdata_test.go

    		t.Errorf("texta value = %q, want %q", g, e)
    	}
    	fd := testFile(t, f.File["filea"][0], "filea.txt", fileaContents)
    	if _, ok := fd.(*os.File); ok {
    		t.Error("file is *os.File, should not be")
    	}
    	fd.Close()
    	fd = testFile(t, f.File["fileb"][0], "fileb.txt", filebContents)
    	if _, ok := fd.(*os.File); !ok {
    		t.Errorf("file has unexpected underlying type %T", fd)
    	}
    	fd.Close()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskOutputsTest.groovy

            then:
            outputs.files.files == files('a', "b")
            outputs.fileProperties*.propertyName == ['prop.fileA', 'prop.fileB']
            outputs.fileProperties*.propertyFiles*.files.flatten() == [file("a"), file("b")]
            outputs.fileProperties*.outputFile == [file("a"), file("b")]
            outputs.fileProperties*.outputType == [type, type]
            where:
            name    | type
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 15 21:46:24 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

        pathb = tmp_path / "testb.txt"
        patha.write_text("<file content>")
        pathb.write_text("<file b content>")
    
        client = TestClient(app)
        with patha.open("rb") as filea, pathb.open("rb") as fileb:
            response = client.post(
                "/files/",
                data={"token": "foo"},
                files={"file": filea, "fileb": ("testb.txt", fileb, "text/plain")},
            )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an_py39.py

        pathb = tmp_path / "testb.txt"
        patha.write_text("<file content>")
        pathb.write_text("<file b content>")
    
        client = TestClient(app)
        with patha.open("rb") as filea, pathb.open("rb") as fileb:
            response = client.post(
                "/files/",
                data={"token": "foo"},
                files={"file": filea, "fileb": ("testb.txt", fileb, "text/plain")},
            )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/go/token/position_test.go

    	checkNumFiles := func(want int) {
    		got := 0
    		fset.Iterate(func(*File) bool { got++; return true })
    		if got != want {
    			t.Errorf("Iterate called %d times, want %d", got, want)
    		}
    	}
    
    	apos3 := a.Pos(3)
    	bpos3 := b.Pos(3)
    	checkPos(apos3, "fileA:1:4")
    	checkPos(bpos3, "fileB:1:4")
    	checkNumFiles(2)
    
    	// After removal, queries on fileA fail.
    	fset.RemoveFile(a)
    	checkPos(apos3, "-")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. src/net/http/request_test.go

    	assertMem := func(n string, fd multipart.File) {
    		if _, ok := fd.(*os.File); ok {
    			t.Error(n, " is *os.File, should not be")
    		}
    	}
    	fda := testMultipartFile(t, req, "filea", "filea.txt", fileaContents)
    	defer fda.Close()
    	assertMem("filea", fda)
    	fdb := testMultipartFile(t, req, "fileb", "fileb.txt", filebContents)
    	defer fdb.Close()
    	if allMem {
    		assertMem("fileb", fdb)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/files/fileCollections/kotlin/build.gradle.kts

    import java.nio.file.Paths
    
    // tag::simple-params[]
    val collection: FileCollection = layout.files(
        "src/file1.txt",
        File("src/file2.txt"),
        listOf("src/file3.csv", "src/file4.csv"),
        Paths.get("src", "file5.txt")
    )
    // end::simple-params[]
    
    file("src").mkdirs()
    file("src/dir1").mkdirs()
    file("src/file1.txt").mkdirs()
    file("src2").mkdirs()
    file("src2/dir1").mkdirs()
    file("src2/dir2").mkdirs()
    
    // tag::closure[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 13:55:00 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalInputsIntegrationTest.groovy

            given:
            previousExecution()
    
            when:
            file('inputs/file1.txt') << "changed content"
            file('inputs/file2.txt').delete()
            file('inputs/file3.txt') << "new file 3"
            file('inputs/file4.txt') << "new file 4"
    
            then:
            executesIncrementally(
                modified: ['file1.txt'],
                removed: ['file2.txt'],
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 23 12:52:29 UTC 2022
    - 27.8K bytes
    - Viewed (0)
Back to top