Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for files (0.15 sec)

  1. src/archive/tar/writer_test.go

    			testClose{nil},
    		},
    	}, {
    		// This file was produced using GNU tar v1.26:
    		//	echo "Slartibartfast" > file.txt
    		//	ln file.txt hard.txt
    		//	tar -b 1 --format=ustar -c -f hardlink.tar file.txt hard.txt
    		file: "testdata/hardlink.tar",
    		tests: []testFnc{
    			testHeader{Header{
    				Typeflag: TypeReg,
    				Name:     "file.txt",
    				Size:     15,
    				Mode:     0644,
    				Uid:      1000,
    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)
  2. src/archive/zip/writer_test.go

    		},
    		{
    			name:    "small deflate wo desc",
    			content: bytes.Repeat([]byte("abcdefg"), 2048),
    			method:  Deflate,
    		},
    	}
    
    	// write a zip file
    	archive := new(bytes.Buffer)
    	w := NewWriter(archive)
    
    	for i := range files {
    		f := &files[i]
    		f.crc32 = crc32.ChecksumIEEE(f.content)
    		size := uint64(len(f.content))
    		f.uncompressedSize = size
    		f.compressedSize = size
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
Back to top