- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,654 for file (0.04 sec)
-
guava/src/com/google/common/io/Files.java
} /** * Returns a new {@link ByteSource} for reading bytes from the given file. * * @since 14.0 */ public static ByteSource asByteSource(File file) { return new FileByteSource(file); } private static final class FileByteSource extends ByteSource { private final File file; private FileByteSource(File file) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jul 22 19:03:12 UTC 2024 - 33.1K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Files.java
} /** * Returns a new {@link ByteSource} for reading bytes from the given file. * * @since 14.0 */ public static ByteSource asByteSource(File file) { return new FileByteSource(file); } private static final class FileByteSource extends ByteSource { private final File file; private FileByteSource(File file) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jul 22 19:03:12 UTC 2024 - 33.1K bytes - Viewed (0) -
docs/de/docs/tutorial/request-files.md
Mit `File` können sie vom Client hochzuladende Dateien definieren. /// info Um hochgeladene Dateien zu empfangen, installieren Sie zuerst <a href="https://andrew-d.github.io/python-multipart/" class="external-link" target="_blank">`python-multipart`</a>. Z. B. `pip install python-multipart`. Das, weil hochgeladene Dateien als „Formulardaten“ gesendet werden. /// ## `File` importieren
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.3K bytes - Viewed (0) -
docs/ru/docs/tutorial/request-files.md
``` //// /// info | "Дополнительная информация" `File` - это класс, который наследуется непосредственно от `Form`. Но помните, что когда вы импортируете `Query`, `Path`, `File` и другие из `fastapi`, на самом деле это функции, которые возвращают специальные классы. /// /// tip | "Подсказка"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.3K bytes - Viewed (0) -
docs/en/docs/tutorial/request-files.md
* `content_type`: A `str` with the content type (MIME type / media type) (e.g. `image/jpeg`).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.2K bytes - Viewed (0) -
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: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 9.8K bytes - Viewed (0) -
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: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 9.9K 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 Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 29.9K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
File file = new File(localRepo.getBasedir(), path); assertTrue(file.exists(), "Local artifact " + file + " should be present."); } protected void assertRemoteArtifactNotPresent(Artifact artifact) throws Exception { ArtifactRepository remoteRepo = remoteRepository(); String path = remoteRepo.pathOf(artifact); File file = new File(remoteRepo.getBasedir(), path);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
private final ThreadLocal<File> fileThreadLocal = new ThreadLocal<>(); protected File createFile() throws IOException { File file = File.createTempFile("SinkSourceFile", "txt"); fileThreadLocal.set(file); return file; } protected File getFile() { return fileThreadLocal.get(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 12.6K bytes - Viewed (0)