- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for OpenReader (0.2 sec)
-
src/archive/zip/example_test.go
} } // Make sure to check the error on Close. err := w.Close() if err != nil { log.Fatal(err) } } func ExampleReader() { // Open a zip archive for reading. r, err := zip.OpenReader("testdata/readme.zip") if err != nil { log.Fatal(err) } defer r.Close() // Iterate through the files in the archive, // printing some of their contents. for _, f := range r.File {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jan 27 00:22:03 GMT 2016 - 2K bytes - Viewed (0) -
src/archive/zip/reader_test.go
0x00, 0x00, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, } // Read in the archive with the OpenReader interface name := filepath.Join(t.TempDir(), "test.zip") err := os.WriteFile(name, data, 0644) if err != nil { t.Fatalf("Unable to write out the bugos zip entry") } r, err := OpenReader(name) if r != nil { defer r.Close() } if err != ErrInsecurePath {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Mar 27 18:23:49 GMT 2024 - 55.3K bytes - Viewed (0) -
src/archive/zip/reader.go
zip64 bool // zip64 extended information extra field presence } // OpenReader will open the Zip file specified by name and return a ReadCloser. // // If any file inside the archive uses a non-local name // (as defined by [filepath.IsLocal]) or a name containing backslashes // and the GODEBUG environment variable contains `zipinsecurepath=0`, // OpenReader returns the reader with an ErrInsecurePath error.
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) -
cmd/test-utils_test.go
checkRespErr(rec, http.StatusOK) } } // unzip a file into a specific target dir - used to unzip sample data in cmd/testdata/ func unzipArchive(zipFilePath, targetDir string) error { zipReader, err := zip.OpenReader(zipFilePath) if err != nil { return err } for _, file := range zipReader.Reader.File { zippedFile, err := file.Open() if err != nil { return err } err = func() (err error) {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Apr 04 12:06:57 GMT 2024 - 75.7K bytes - Viewed (0) -
api/go1.txt
pkg archive/zip, func FileInfoHeader(os.FileInfo) (*FileHeader, error) pkg archive/zip, func NewReader(io.ReaderAt, int64) (*Reader, error) pkg archive/zip, func NewWriter(io.Writer) *Writer pkg archive/zip, func OpenReader(string) (*ReadCloser, error) pkg archive/zip, method (*File) FileInfo() os.FileInfo pkg archive/zip, method (*File) ModTime() time.Time pkg archive/zip, method (*File) Mode() os.FileMode
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Viewed (1)