Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for zip (0.14 sec)

  1. src/archive/zip/zip_test.go

    }
    
    func suffixIsZip64(t *testing.T, zip sizedReaderAt) bool {
    	d := make([]byte, 1024)
    	if _, err := zip.ReadAt(d, zip.Size()-int64(len(d))); err != nil {
    		t.Fatalf("ReadAt: %v", err)
    	}
    
    	sigOff := findSignatureInBlock(d)
    	if sigOff == -1 {
    		t.Errorf("failed to find signature in block")
    		return false
    	}
    
    	dirOff, err := findDirectory64End(zip, zip.Size()-int64(len(d))+int64(sigOff))
    	if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  2. cmd/s3-zip-handlers.go

    	// Peek into a zip archive
    	xMinIOExtract = "x-minio-extract"
    )
    
    // splitZipExtensionPath splits the S3 path to the zip file and the path inside the zip:
    //
    //	e.g  /path/to/archive.zip/backup-2021/myimage.png => /path/to/archive.zip, backup/myimage.png
    func splitZipExtensionPath(input string) (zipPath, object string, err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  3. lib/time/mkzip.go

    //go:build ignore
    
    // Mkzip writes a zoneinfo.zip with the content of the current directory
    // and its subdirectories, with no compression, suitable for package time.
    //
    // Usage:
    //
    //	go run ../../mkzip.go ../../zoneinfo.zip
    //
    // We use this program instead of 'zip -0 -r ../../zoneinfo.zip *' to get
    // a reproducible generator that does not depend on which version of the
    // external zip tool is used or the ordering of file names in a directory
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/archive/zip/reader.go

    	ErrChecksum     = errors.New("zip: checksum error")
    	ErrInsecurePath = errors.New("zip: insecure file path")
    )
    
    // A Reader serves content from a ZIP archive.
    type Reader struct {
    	r             io.ReaderAt
    	File          []*File
    	Comment       string
    	decompressors map[uint16]Decompressor
    
    	// Some JAR files are zip files with a prefix that is a bash script.
    	// The baseOffset field is the start of the zip file proper.
    	baseOffset int64
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  5. src/archive/zip/struct.go

    	unixExtraID        = 0x000d // UNIX
    	extTimeExtraID     = 0x5455 // Extended timestamp
    	infoZipUnixExtraID = 0x5855 // Info-ZIP Unix extension
    )
    
    // FileHeader describes a file within a ZIP file.
    // See the [ZIP specification] for details.
    //
    // [ZIP specification]: https://support.pkware.com/pkzip/appnote
    type FileHeader struct {
    	// Name is the name of the file.
    	//
    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)
  6. docs/debugging/inspect/main.go

    	// Calculate the output file name
    	switch {
    	case strings.HasSuffix(inputFileName, ".enc"):
    		outputFileName = strings.TrimSuffix(inputFileName, ".enc") + ".zip"
    	case strings.HasSuffix(inputFileName, ".zip"):
    		outputFileName = strings.TrimSuffix(inputFileName, ".zip") + ".decrypted.zip"
    	}
    
    	// Backup any already existing output file
    	_, err := os.Stat(outputFileName)
    	if err == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  7. cmd/admin-bucket-handlers.go

    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    	}
    
    	// Initialize a zip writer which will provide a zipped content
    	// of bucket metadata
    	zipWriter := zip.NewWriter(w)
    	defer zipWriter.Close()
    
    	rawDataFn := func(r io.Reader, filename string, sz int) {
    		header, zerr := zip.FileInfoHeader(dummyFileInfo{
    			name:    filename,
    			size:    int64(sz),
    			mode:    0o600,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  8. docs/debugging/inspect/export.go

    package main
    
    import (
    	"bytes"
    	"encoding/binary"
    	"encoding/hex"
    	"errors"
    	"fmt"
    	"io"
    	"os"
    	"strings"
    	"time"
    
    	json "github.com/minio/colorjson"
    
    	"github.com/klauspost/compress/zip"
    	"github.com/tinylib/msgp/msgp"
    )
    
    func inspectToExportType(downloadPath string, datajson bool) error {
    	decode := func(r io.Reader, file string) ([]byte, error) {
    		b, e := io.ReadAll(r)
    		if e != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 08 15:58:02 GMT 2022
    - 9.1K bytes
    - Viewed (0)
  9. docs/extensions/s3zip/examples/minio-go/main.go

    	// Add extract header to request:
    	opts.Set("x-minio-extract", "true")
    
    	// Download API.md from the archive
    	rd, err := s3Client.GetObject(context.Background(), "your-bucket", "path/to/file.zip/data.csv", opts)
    	if err != nil {
    		log.Fatalln(err)
    	}
    	_, err = io.Copy(os.Stdout, rd)
    	if err != nil {
    		log.Fatalln(err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 14 18:04:14 GMT 2021
    - 694 bytes
    - Viewed (0)
  10. docs/debugging/xl-meta/main.go

    				if err != nil {
    					return err
    				}
    				if st, err := f.Stat(); err == nil {
    					sz = st.Size()
    				}
    				defer f.Close()
    				r = f
    			}
    			if strings.HasSuffix(file, ".zip") {
    				zr, err := zip.NewReader(r.(io.ReaderAt), sz)
    				if err != nil {
    					return err
    				}
    				for _, file := range zr.File {
    					if !file.FileInfo().IsDir() && strings.HasSuffix(file.Name, "xl.meta") {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
Back to top