Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 9,688 for _file (0.04 seconds)

  1. docs_src/request_files/tutorial001_02_py310.py

    from fastapi import FastAPI, File, UploadFile
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_file(file: bytes | None = File(default=None)):
        if not file:
            return {"message": "No file sent"}
        else:
            return {"file_size": len(file)}
    
    
    @app.post("/uploadfile/")
    async def create_upload_file(file: UploadFile | None = None):
        if not file:
            return {"message": "No upload file sent"}
        else:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 470 bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/io/ResourceUtil.java

        }
    
        /**
         * Returns the file of the resource.
         *
         * @param url
         *            The resource URL. Must not be {@literal null}.
         * @return The file.
         */
        public static File getFile(final URL url) {
            assertArgumentNotNull("url", url);
    
            final File file = new File(getFileName(url));
            if (file != null && file.exists()) {
                return file;
            }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/FileEntry.java

    package jcifs.smb;
    
    /**
     * Interface representing a file entry in an SMB directory listing.
     * Provides access to file metadata and attributes.
     *
     */
    public interface FileEntry {
    
        /**
         * Gets the file name.
         *
         * @return the file name
         */
        String getName();
    
        /**
         * Gets the file type.
         *
         * @return the file type
         */
        int getType();
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

                        if (directory.exists() && directory.isDirectory()) {
                            final File[] files = directory.listFiles(File::isDirectory);
                            if (files != null) {
                                for (final File file : files) {
                                    final String name = file.getName();
                                    subPackages.add(name);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 13:59:25 GMT 2026
    - 12.4K bytes
    - Click Count (1)
  5. docs/fr/docs/tutorial/request-files.md

    ///
    
    ## Importer `File` { #import-file }
    
    Importez `File` et `UploadFile` depuis `fastapi` :
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[3] *}
    
    ## Définir des paramètres `File` { #define-file-parameters }
    
    Créez des paramètres de fichier de la même manière que pour `Body` ou `Form` :
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[9] *}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            }
        }
    
        @Test
        public void testFileBasedCacheCloseNonExistentFile() {
            tempFile = new File(Curl.tmpDir, "non-existent-file.tmp");
            assertFalse(tempFile.exists());
    
            ContentCache cache = new ContentCache(tempFile);
    
            // Should throw IOException when file doesn't exist
            try {
                cache.close();
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  7. docs_src/request_files/tutorial001_03_an_py310.py

    from fastapi import FastAPI, File, UploadFile
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_file(file: Annotated[bytes, File(description="A file read as bytes")]):
        return {"file_size": len(file)}
    
    
    @app.post("/uploadfile/")
    async def create_upload_file(
        file: Annotated[UploadFile, File(description="A file read as UploadFile")],
    ):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 421 bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionArchiveCheckPlugin.java

        }
    
        private static void assertNoClassFile(File file) {
            if (file.getName().endsWith(".class")) {
                throw new GradleException("Detected class file in distribution ('" + file.getName() + "')");
            }
        }
    
        private static boolean zipExists() {
            return new File("/bin/unzip").exists() || new File("/usr/bin/unzip").exists() || new File("/usr/local/bin/unzip").exists();
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 10.6K bytes
    - Click Count (0)
  9. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/FixProjectHealthTask.kt

                    }
                }
                file.writeText(lines.joinToString("\n"))
            }
        }
    
        private fun addDependencies(dependencyFixes: Map<String, List<String>>) {
            dependencyFixes.forEach { (filePath, dependencies) ->
                val file = File(filePath)
                if (!file.exists()) return@forEach
    
                val lines = file.readLines().toMutableList()
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 03 06:57:08 GMT 2025
    - 6.2K bytes
    - Click Count (1)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java

            private final Set<File> canonicalPackageInfos = new HashSet<>();
    
            @Override
            public boolean isSatisfiedBy(File file) {
                try {
                    if (file.getName().equals("package-info.java")) {
                        if (canonicalPackageInfos.contains(file.getAbsoluteFile())) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Sun Mar 01 05:52:34 GMT 2026
    - 11.6K bytes
    - Click Count (0)
Back to Top