Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for promise (0.18 sec)

  1. src/archive/zip/struct.go

    // fs.FileInfo.
    // Because fs.FileInfo's Name method returns only the base name of
    // the file it describes, it may be necessary to modify the Name field
    // of the returned header to provide the full path name of the file.
    // If compression is desired, callers should set the FileHeader.Method
    // field; it is unset by default.
    func FileInfoHeader(fi fs.FileInfo) (*FileHeader, error) {
    	size := fi.Size()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  2. src/bufio/scan.go

    // functions are defined in this package for scanning a file into
    // lines, bytes, UTF-8-encoded runes, and space-delimited words. The
    // client may instead provide a custom split function.
    //
    // Scanning stops unrecoverably at EOF, the first I/O error, or a token too
    // large to fit in the [Scanner.Buffer]. When a scan stops, the reader may have
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  3. src/archive/tar/writer.go

    func (tw *Writer) WriteHeader(hdr *Header) error {
    	if err := tw.Flush(); err != nil {
    		return err
    	}
    	tw.hdr = *hdr // Shallow copy of Header
    
    	// Avoid usage of the legacy TypeRegA flag, and automatically promote
    	// it to use TypeReg or TypeDir.
    	if tw.hdr.Typeflag == TypeRegA {
    		if strings.HasSuffix(tw.hdr.Name, "/") {
    			tw.hdr.Typeflag = TypeDir
    		} else {
    			tw.hdr.Typeflag = TypeReg
    		}
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  4. src/archive/tar/common.go

    // If fi describes a directory, a slash is appended to the name.
    //
    // Since fs.FileInfo's Name method only returns the base name of
    // the file it describes, it may be necessary to modify Header.Name
    // to provide the full path name of the file.
    //
    // If fi implements [FileInfoNames]
    // Header.Gname and Header.Uname
    // are provided by the methods of the interface.
    func FileInfoHeader(fi fs.FileInfo, link string) (*Header, error) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  5. src/archive/tar/writer_test.go

    				},
    		*/
    	}, {
    		file: "testdata/trailing-slash.tar",
    		tests: []testFnc{
    			testHeader{Header{Name: strings.Repeat("123456789/", 30)}, nil},
    			testClose{nil},
    		},
    	}, {
    		// Automatically promote zero value of Typeflag depending on the name.
    		file: "testdata/file-and-dir.tar",
    		tests: []testFnc{
    			testHeader{Header{Name: "small.txt", Size: 5}, nil},
    			testWrite{"Kilts", 5, nil},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top