zip4win

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 10 Imported by: 0

README

Zip4win

zip4win creats a zip archive with a file name that has been normalized in NFC.

zip4win sets the UTF-8 flag to local file headers.

Installation

$ go get -u github.com/kechako/zip4win/cmd/zip4win

Usage

$ zip4win zipfile file ...

Documentation

Overview

Package zip4win provides Zip archiver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	Normalizing      bool
	ExcludeDSStore   bool
	ExcludeDotfiles  bool
	UseUTC           bool
	CompressionLevel int
	// contains filtered or unexported fields
}

Writer implements a zip file writer.

func New

func New(w io.Writer) *Writer

New returns a new Writer wrting a zip file to w with converting file name encoding.

func (*Writer) Close

func (w *Writer) Close() error

Close finishes writing the zip file by writing the central directory. It does not (and cannot) close the underlying writer.

func (*Writer) WriteEntry

func (w *Writer) WriteEntry(path string) error

WriteEntry add a new entry to zip archive.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL