Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 655 for myfile (0.12 sec)

  1. 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)
  2. docs/ko/docs/tutorial/request-files.md

        * 예) `await myfile.seek(0)` 를 사용하면 파일의 시작부분으로 이동합니다.
        * `await myfile.read()` 를 사용한 후 내용을 다시 읽을 때 유용합니다.
    * `close()`: 파일을 닫습니다.
    
    상기 모든 메소드들이 `async` 메소드이기 때문에 “await”을 사용하여야 합니다.
    
    예를들어, `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
    - 8.1K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/request-files.md

        * 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.
    
    Da alle diese Methoden `async`hron sind, müssen Sie sie `await`en („erwarten“).
    
    Zum Beispiel können Sie innerhalb einer `async` *Pfadoperation-Funktion* den Inhalt wie folgt auslesen:
    
    ```Python
    contents = await myfile.read()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 17:58:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. 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)
  5. platforms/software/resources-gcs/src/test/groovy/org/gradle/internal/resource/transport/gcp/gcs/GcsClientTest.groovy

            URI uri = new URI("gcs://localhost/maven/snapshot/myFile.txt")
    
            when:
            client.put(Mock(InputStream), 12L, uri)
            then:
            1 * storage.objects(*_) >> Mock(Storage.Objects) {
                1 * insert(*_) >> { args ->
                    assert (args.getAt(0) as String) == 'localhost'
                    assert (args[1] as StorageObject).getName() == 'maven/snapshot/myFile.txt'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/path-params.md

    Digamos que você tenha uma *operação de rota* com uma rota `/files/{file_path}`.
    
    Mas você precisa que o próprio `file_path` contenha uma *rota*, como `home/johndoe/myfile.txt`.
    
    Então, a URL para este arquivo deveria ser algo como: `/files/home/johndoe/myfile.txt`.
    
    ### Suporte do OpenAPI
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. src/mime/multipart/writer_test.go

    // license that can be found in the LICENSE file.
    
    package multipart
    
    import (
    	"bytes"
    	"io"
    	"mime"
    	"net/textproto"
    	"strings"
    	"testing"
    )
    
    func TestWriter(t *testing.T) {
    	fileContents := []byte("my file contents")
    
    	var b bytes.Buffer
    	w := NewWriter(&b)
    	{
    		part, err := w.CreateFormFile("myfile", "my-file.txt")
    		if err != nil {
    			t.Fatalf("CreateFormFile: %v", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/path-params.md

      "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: Fri Mar 22 01:42:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/api/resources/TextResource.java

         */
        File asFile(String charset);
    
        /**
         * Same as {@code asFile(Charset.defaultCharset().name())}.
         */
        File asFile();
    
        /**
         * Returns the input properties registered when this resource is used as task input.
         * Not typically used directly.
         *
         * @return the input properties registered when this resource is used as task input
         */
        @Nullable
        @Optional
        @Input
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 10 09:43:44 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  10. cmd/object-api-getobjectinfo_test.go

    		{"test-getobjectinfo", "Antartica", ObjectInfo{}, ObjectNotFound{Bucket: "test-getobjectinfo", Object: "Antartica"}, false},
    		{"test-getobjectinfo", "Asia/myfile", ObjectInfo{}, ObjectNotFound{Bucket: "test-getobjectinfo", Object: "Asia/myfile"}, false},
    		// Valid case with existing object (Test number 12).
    		{"test-getobjectinfo", "Asia/asiapics.jpg", resultCases[0], nil, true},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Dec 23 15:46:00 UTC 2022
    - 5.6K bytes
    - Viewed (0)
Back to top