- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 8,718 for file4 (0.02 sec)
-
tests/test_request_params/test_file/test_required.py
response = client.post(path, files=[("p", b"hello")]) assert response.status_code == 200 assert response.json() == {"file_size": 5} # ===================================================================================== # Alias @app.post("/required-bytes-alias", operation_id="required_bytes_alias") async def read_required_bytes_alias(p: Annotated[bytes, File(alias="p_alias")]): return {"file_size": len(p)}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 10.8K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBadMultiLangSnippets.java
private void gatherBadSnippetsInFile(File file, Map<File, List<Error>> errors) { List<String> lines = new ArrayList<>(); try (java.util.stream.Stream<String> stream = Files.lines(file.toPath())) { stream.forEach(lines::add); } catch (IOException ex) { // If a file can't be read, add an error addError(errors, file, new Error(1, "Failed to read file: " + ex.getMessage())); return;Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Fri Aug 29 10:12:17 UTC 2025 - 7.2K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java
private String getPackageName(File file) throws IOException { try (Stream<String> lines = Files.lines(file.toPath())) { String packageLine = lines.filter(line -> line.startsWith("package")) .findFirst() .orElseThrow(() -> new IOException("Can't find package definition in file " + file)); Matcher matcher = pattern.matcher(packageLine);Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Thu Oct 02 14:18:24 UTC 2025 - 10.4K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/MetadataBridge.java
this.metadata = metadata; } @Override public void merge(File current, File result) throws RepositoryException { try { if (current.exists()) { Files.createDirectories(result.toPath().getParent()); Files.copy(current.toPath(), result.toPath()); } ArtifactRepository localRepo = new MetadataRepository(result);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 4.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformerSupport.java
try (InputStream is = Files.newInputStream(src)) { return new MavenStaxReader().read(is, false, null); } } protected void write(Model model, Path dest) throws IOException, XMLStreamException { String version = model.getModelVersion(); Files.createDirectories(dest.getParent()); try (Writer w = Files.newBufferedWriter(dest)) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Nov 06 18:32:25 UTC 2025 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/synonym/SynonymCreator.java
} /** * Creates a new {@link SynonymFile} instance. * * @param id The unique identifier for the dictionary file. * @param path The file path of the dictionary. * @param timestamp The last modified timestamp of the file. * @return A new {@link SynonymFile} associated with the dictionary manager. */ @OverrideRegistered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.app.web.admin.maintenance; import java.io.IOException; import java.net.InetAddress; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.text.SimpleDateFormat; import java.util.Arrays; import java.util.Date; import java.util.Properties; import java.util.stream.Stream; import java.util.zip.ZipEntry;
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 18.1K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java
} } private void cleanupTemporaryFiles(List<File> files) { for (File file : files) { // really don't care if it failed here only log warning if (!file.delete()) { logger.warn("skip failed to delete temporary file : " + file.getAbsolutePath()); file.deleteOnExit(); } } }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sat Apr 05 11:52:05 UTC 2025 - 29.9K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Source.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at *
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jan 29 09:46:53 UTC 2025 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
Files.createParentDirs(file); } public void testCreateParentDirs_relativePath() throws IOException { File file = file("nonexistent.file"); assertThat(file.getParentFile()).isNull(); assertThat(file.getCanonicalFile().getParentFile()).isNotNull(); Files.createParentDirs(file); } public void testCreateParentDirs_noParentsNeeded() throws IOException {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 22.1K bytes - Viewed (0)