Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 8,485 for FILE (0.03 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java

         */
        public BasedirBeanConfigurationPathTranslator(File basedir) {
            this.basedir = basedir;
        }
    
        public File translatePath(File path) {
            File result = path;
    
            if (path != null && basedir != null) {
                if (path.isAbsolute()) {
                    // path is already absolute, we're done
                } else if (path.getPath().startsWith(File.separator)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. docs_src/request_files/tutorial003.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(description="Multiple files as bytes"),
    ):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(
        files: List[UploadFile] = File(description="Multiple files as UploadFile"),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 913 bytes
    - Viewed (0)
  3. docs_src/request_files/tutorial003_an.py

    from typing import List
    
    from fastapi import FastAPI, File, UploadFile
    from fastapi.responses import HTMLResponse
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(
        files: Annotated[List[bytes], File(description="Multiple files as bytes")],
    ):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 987 bytes
    - Viewed (0)
  4. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/ReproduciblePropertiesWriter.kt

            }
    
            /**
             * Writes [Properties] to a file, but without including the timestamp comment.
             *
             * See [PropertiesUtils.store].
             */
            fun store(properties: Properties, file: File, comment: String? = null) {
                PropertiesUtils.store(properties, file, comment, Charsets.ISO_8859_1, "\n")
            }
    
            private
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/service/StopwordsService.java

                if (stopwordsItem.getId() == 0) {
                    file.insert(stopwordsItem);
                } else {
                    file.update(stopwordsItem);
                }
            });
        }
    
        public void delete(final String dictId, final StopwordsItem stopwordsItem) {
            getStopwordsFile(dictId).ifPresent(file -> {
                file.delete(stopwordsItem);
            });
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/service/SynonymService.java

                if (synonymItem.getId() == 0) {
                    file.insert(synonymItem);
                } else {
                    file.update(synonymItem);
                }
            });
        }
    
        public void delete(final String dictId, final SynonymItem synonymItem) {
            getSynonymFile(dictId).ifPresent(file -> {
                file.delete(synonymItem);
            });
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                }
    
                // The temporary file is named destination + ".tmp" and is done this way to ensure
                // that the temporary file is in the same file system as the destination because the
                // File.renameTo operation doesn't really work across file systems.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFileInputStream.java

            this(file, 0, SmbConstants.O_RDONLY, SmbConstants.DEFAULT_SHARING, false);
        }
    
    
        SmbFileInputStream ( SmbFile file, int openFlags, int access, int sharing, boolean unshared ) throws SmbException {
            this.file = file;
            this.unsharedFile = unshared;
            this.openFlags = openFlags;
            this.access = access;
            this.sharing = sharing;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 08:55:14 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/DictionaryManager.java

                            if (file != null) {
                                return file;
                            }
                        }
                    } catch (final Exception e) {
                        logger.warn("Failed to load {}", fileMap, e);
                    }
                    return null;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. src/archive/zip/reader_test.go

    	}
    	_, err = r.Open("test.txt")
    	if err != nil {
    		t.Errorf("Error reading file: %v", err)
    	}
    	if len(r.File) != 1 {
    		t.Fatalf("No entries in the file list")
    	}
    	if r.File[0].Name != "../test.txt" {
    		t.Errorf("Unexpected entry name: %s", r.File[0].Name)
    	}
    	if _, err := r.File[0].Open(); err != nil {
    		t.Errorf("Error opening file: %v", err)
    	}
    }
    
    func TestOpenReaderInsecurePath(t *testing.T) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
Back to top