Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,021 for files (0.65 sec)

  1. maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java

                for (Artifact artifact : extensionArtifacts) {
                    File file = artifact.getFile();
                    files.add(file);
                    timestamps.add((file != null) ? Long.valueOf(file.lastModified()) : Long.valueOf(0));
                    sizes.add((file != null) ? Long.valueOf(file.length()) : Long.valueOf(0));
                    ids.add(artifact.getVersion());
                }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 4.7K bytes
    - Viewed (0)
  2. docs_src/request_files/tutorial002_an_py39.py

    from fastapi import FastAPI, File, UploadFile
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(files: Annotated[list[bytes], File()]):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(files: list[UploadFile]):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 826 bytes
    - Viewed (0)
  3. docs_src/request_files/tutorial002.py

    from fastapi import FastAPI, File, UploadFile
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(files: List[bytes] = File()):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(files: List[UploadFile]):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 811 bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/ThemeHelper.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.helper;
    
    import java.io.IOException;
    import java.nio.file.FileVisitOption;
    import java.nio.file.Files;
    import java.nio.file.Path;
    import java.nio.file.StandardCopyOption;
    import java.util.Comparator;
    import java.util.stream.Stream;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipInputStream;
    
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/net/URLUtilTest.java

        }
    
        /**
         * @throws Exception
         */
        public void testToFile() throws Exception {
            final File file = new File("Program Files/hoge.txt");
            final URL url = file.toURI().toURL();
            assertEquals(file.getAbsoluteFile(), URLUtil.toFile(url));
            assertEquals(file.getAbsoluteFile(), URLUtil.toFile(new URL("file:Program%20Files/hoge.txt")));
        }
    
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_request_files/test_tutorial001_02_an.py

        assert response.json() == {"message": "No upload file sent"}
    
    
    def test_post_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_request_files/test_tutorial001_03_an.py

    from fastapi.testclient import TestClient
    
    from docs_src.request_files.tutorial001_03_an import app
    
    client = TestClient(app)
    
    
    def test_post_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 6K bytes
    - Viewed (0)
  8. .cm/summary_table.cm

                <td>{{ branch.diff.files_metadata | filter(attr='file', list=platform.subprojects) | map(attr='deletions') | sum }}</td>
                <td>{{ ((branch.diff.files_metadata | filter(attr='file', list=platform.subprojects) | map(attr='deletions') | sum) / (changes.additions + changes.deletions) * 100) | round(2) }}%</td>
    Plain Text
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Thu Feb 08 15:20:44 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/FilesTest.java

        Files.createParentDirs(file);
      }
    
      public void testCreateParentDirs_relativePath() throws IOException {
        File file = file("nonexistent.file");
        assertNull(file.getParentFile());
        assertNotNull(file.getCanonicalFile().getParentFile());
        Files.createParentDirs(file);
      }
    
      public void testCreateParentDirs_noParentsNeeded() throws IOException {
        File file = file(getTempDir(), "nonexistent.file");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/PathModularization.java

                 * source files.
                 */
                if (Files.isDirectory(file)) {
                    Map<Path, String> names = new HashMap<>();
                    try (Stream<Path> subdirs = Files.list(file)) {
                        subdirs.filter(Files::isDirectory).forEach((subdir) -> {
                            Path mf = subdir.resolve(MODULE_INFO);
                            if (Files.isRegularFile(mf)) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
Back to top