- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 176 for myFile (0.26 sec)
-
tests/test_tutorial/test_path_params/test_tutorial004.py
client = TestClient(app) def test_file_path(): response = client.get("/files/home/johndoe/myfile.txt") print(response.content) assert response.status_code == 200, response.text assert response.json() == {"file_path": "home/johndoe/myfile.txt"} def test_root_file_path(): response = client.get("/files//home/johndoe/myfile.txt") print(response.content) assert response.status_code == 200, response.text
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.3K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/writing_tasks.adoc
@Input val fileName = "myfile.txt" @OutputFile val myFile: File = File(fileName) @TaskAction fun action() { myFile.createNewFile() myFile.writeText(fileText) } } tasks.register<CreateFileTask>("createFileTask") { group = "custom" description = "Create myfile.txt in the current directory" } ----
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 05 18:33:11 UTC 2024 - 5.2K bytes - Viewed (0) -
src/path/example_test.go
dir, file := path.Split(s) fmt.Printf("path.Split(%q) = dir: %q, file: %q\n", s, dir, file) } split("static/myfile.css") split("myfile.css") split("") // Output: // path.Split("static/myfile.css") = dir: "static/", file: "myfile.css" // path.Split("myfile.css") = dir: "", file: "myfile.css" // path.Split("") = dir: "", file: ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 19 00:10:22 UTC 2020 - 2.2K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/writing_plugins.adoc
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 18 00:36:58 UTC 2024 - 7.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedTypeWithUnmanagedPropertiesIntegrationTest.groovy
String value } class MyFile extends File { MyFile(String s) { super(s) } } @Managed interface ManagedThing { @Unmanaged UnmanagedThing getUnmanaged() void setUnmanaged(UnmanagedThing unmanaged) @Unmanaged MyFile getFile() void setFile(MyFile file)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5K bytes - Viewed (0) -
cmd/postpolicyform_test.go
{Bucket: "testbucket", Key: "user/user1/filename/${filename}/myfile.txt", XAmzMetaUUID: "14365123651274", SuccessActionStatus: "201", XAmzCredential: "KVGKMDUQ23TCZXTLTHLP/20160727/us-east-1/s3/aws4_request", XAmzDate: "20160727T000000Z", XAmzAlgorithm: "AWS4-HMAC-SHA256", ContentType: "image/jpeg", expectedErr: nil}, // Expired policy document
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 8.9K bytes - Viewed (0) -
docs/zh/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`,例如: ```Python contents = myfile.file.read() ``` !!! note "`async` 技术细节"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/em/docs/tutorial/request-files.md
* `seek(offset)`: 🚶 🔢 🧘 `offset` (`int`) 📁. * 🤶 Ⓜ., `await myfile.seek(0)` 🔜 🚶 ▶️ 📁. * 👉 ✴️ ⚠ 🚥 👆 🏃 `await myfile.read()` 🕐 & ⤴️ 💪 ✍ 🎚 🔄. * `close()`: 🔐 📁. 🌐 👫 👩🔬 `async` 👩🔬, 👆 💪 "⌛" 👫. 🖼, 🔘 `async` *➡ 🛠️ 🔢* 👆 💪 🤚 🎚 ⏮️: ```Python contents = await myfile.read() ``` 🚥 👆 🔘 😐 `def` *➡ 🛠️ 🔢*, 👆 💪 🔐 `UploadFile.file` 🔗, 🖼: ```Python
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 6.6K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/phases/reset/cleanupnode_test.go
"manifests/kube-apiserver.yaml", "pki/ca.pem", kubeadmconstants.AdminKubeConfigFileName, kubeadmconstants.KubeletKubeConfigFileName, ".mydir/.myfile", }, verifyExists: []string{ "manifests", "pki", ".mydir", ".mydir/.myfile", }, }, "no-op reset": { verifyNotExists: []string{ "pki", "manifests", }, }, "not a directory": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 5.1K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params.md
Let's say you have a *path operation* with a path `/files/{file_path}`. But you need `file_path` itself to contain a *path*, like `home/johndoe/myfile.txt`. So, the URL for that file would be something like: `/files/home/johndoe/myfile.txt`. ### OpenAPI support
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 9.1K bytes - Viewed (0)