- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 118 for myFile (0.3 sec)
-
docs/ru/docs/tutorial/request-files.md
* `read(size)`: Прочитать количество `size` (`int`) байт/символов из файла. * `seek(offset)`: Перейти к байту на позиции `offset` (`int`) в файле. * Наример, `await myfile.seek(0)` перейдет к началу файла. * Это особенно удобно, если вы один раз выполнили команду `await myfile.read()`, а затем вам нужно прочитать содержимое файла еще раз. * `close()`: Закрыть файл.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 15.4K bytes - Viewed (0) -
docs/ru/docs/tutorial/path-params.md
## Path-параметры, содержащие пути Предположим, что есть *операция пути* с путем `/files/{file_path}`. Но вам нужно, чтобы `file_path` сам содержал *путь*, например, `home/johndoe/myfile.txt`. Тогда URL для этого файла будет такой: `/files/home/johndoe/myfile.txt`. ### Поддержка OpenAPI
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 14.1K bytes - Viewed (0) -
docs/fr/docs/tutorial/path-params.md
Disons que vous avez une *fonction de chemin* liée au chemin `/files/{file_path}`. Mais que `file_path` lui-même doit contenir un *chemin*, comme `home/johndoe/myfile.txt` par exemple. Donc, l'URL pour ce fichier pourrait être : `/files/home/johndoe/myfile.txt`. ### Support d'OpenAPI
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 10K bytes - Viewed (0) -
platforms/software/resources-s3/src/test/groovy/org/gradle/internal/resource/transport/aws/s3/S3ClientTest.groovy
URI uri = new URI("s3://localhost/maven/snapshot/myFile.txt") when: client.put(Mock(InputStream), 12L, uri) then: 1 * amazonS3Client.putObject(*_) >> { args -> PutObjectRequest putObjectRequest = args[0] assert putObjectRequest.bucketName == 'localhost' assert putObjectRequest.key == 'maven/snapshot/myFile.txt'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 10.3K bytes - Viewed (0) -
docs/en/docs/tutorial/request-files.md
* `read(size)`: Reads `size` (`int`) bytes/characters of the file. * `seek(offset)`: Goes to the byte position `offset` (`int`) in the file. * E.g., `await myfile.seek(0)` would go to the start of the file. * This is especially useful if you run `await myfile.read()` once and then need to read the contents again. * `close()`: Closes the file. As all these methods are `async` methods, you need to "await" them.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 10.2K bytes - Viewed (0) -
docs/de/docs/tutorial/path-params.md
Angenommen, Sie haben eine *Pfadoperation* mit einem Pfad `/files/{file_path}`. Aber `file_path` soll selbst einen *Pfad* enthalten, etwa `home/johndoe/myfile.txt`. Sprich, die URL für diese Datei wäre etwas wie: `/files/home/johndoe/myfile.txt`. ### OpenAPI Unterstützung
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:28:59 UTC 2024 - 10.3K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestInputAnnotationFailuresIntegrationTest.groovy
'File' | 'myField' | "File myField = project.layout.projectDirectory.file('myFile.txt').getAsFile()" | 'myField.absolutePath' 'RegularFile' | 'myField' | "RegularFile myField = project.layout.projectDirectory.file('myFile.txt')" | 'myField.getAsFile().absolutePath'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 10.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/request-files.md
* `seek(offset)`: 파일 내 `offset`(`int`) 위치의 바이트로 이동합니다. * 예) `await myfile.seek(0)` 를 사용하면 파일의 시작부분으로 이동합니다. * `await myfile.read()` 를 사용한 후 내용을 다시 읽을 때 유용합니다. * `close()`: 파일을 닫습니다. 상기 모든 메소드들이 `async` 메소드이기 때문에 “await”을 사용하여야 합니다. 예를들어, `async` *경로 작동 함수*의 내부에서 다음과 같은 방식으로 내용을 가져올 수 있습니다: ```Python contents = await myfile.read() ``` 만약 일반적인 `def` *경로 작동 함수*의 내부라면, 다음과 같이 `UploadFile.file` 에 직접 접근할 수 있습니다:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 8.1K bytes - Viewed (0) -
docs/de/docs/tutorial/request-files.md
* `read(anzahl)`: Liest `anzahl` (`int`) bytes/Zeichen aus der Datei. * `seek(versatz)`: Geht zur Position `versatz` (`int`) in der Datei. * Z. B. würde `await myfile.seek(0)` zum Anfang der Datei gehen. * Das ist besonders dann nützlich, wenn Sie `await myfile.read()` einmal ausführen und dann diese Inhalte erneut auslesen müssen. * `close()`: Schließt die Datei.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 17:58:08 UTC 2024 - 11.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params.md
{ "model_name": "alexnet", "message": "Deep Learning FTW!" } ``` ## 包含路径的路径参数 假设*路径操作*的路径为 `/files/{file_path}`。 但需要 `file_path` 中也包含*路径*,比如,`home/johndoe/myfile.txt`。 此时,该文件的 URL 是这样的:`/files/home/johndoe/myfile.txt`。 ### OpenAPI 支持 OpenAPI 不支持声明包含路径的*路径参数*,因为这会导致测试和定义更加困难。 不过,仍可使用 Starlette 内置工具在 **FastAPI** 中实现这一功能。 而且不影响文档正常运行,但是不会添加该参数包含路径的说明。 ### 路径转换器
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Apr 01 05:35:40 UTC 2024 - 7.6K bytes - Viewed (0)