Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for CompressedSize64 (0.06 seconds)

  1. src/archive/zip/reader.go

    		// The ZIP specification (APPNOTE.TXT) specifies that directories, which
    		// are technically zero-byte files, must not have any associated file
    		// data. We previously tried failing here if f.CompressedSize64 != 0,
    		// but it turns out that a number of implementations (namely, the Java
    		// jar tool) don't properly set the storage method on directories
    		// resulting in a file with compressed size > 0 but uncompressed size ==
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 15 18:35:56 GMT 2026
    - 28.5K bytes
    - Click Count (0)
  2. src/archive/zip/reader_test.go

    			t.Fatal(err)
    		}
    		defer z.Close()
    
    		for _, f := range z.File {
    			// Make file a directory
    			f.Name += "/"
    
    			t.Run(f.Name, func(t *testing.T) {
    				t.Logf("CompressedSize64: %d, Flags: %#x", f.CompressedSize64, f.Flags)
    
    				rd, err := f.Open()
    				if err != nil {
    					t.Fatal(err)
    				}
    				defer rd.Close()
    
    				n, got := io.Copy(io.Discard, rd)
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 15 18:35:56 GMT 2026
    - 57.9K bytes
    - Click Count (0)
Back to Top