zipc

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: BSD-2-Clause-Views Imports: 3 Imported by: 1

README

zipc - like zip, but with a -chdir option

EXAMPLE

$ zipc -root example e-e-cummings.zip e-e-cummings

$ unzip -l e-e-cummings.zip
Archive:  e-e-cummings.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
     1208  2021-08-17 15:38   e-e-cummings/anyone-lived-in-a-pretty-how-town.txt
       34  2021-08-17 15:45   e-e-cummings/l(a.txt
      601  2021-08-17 15:44   e-e-cummings/you-shall-above-all-things-be-glad-and-young.txt
---------                     -------
     1843                     3 files
...

See zipc -help for more detail.

DOWNLOAD

https://github.com/mcandre/zipc/releases

DOCUMENTATION

https://godoc.org/github.com/mcandre/zipc

INSTALL FROM SOURCE

$ go install github.com/mcandre/zipc/cmd/zipc@latest

RUNTIME REQUIREMENTS

(None)

CONTRIBUTING

For more information on developing accio itself, see DEVELOPMENT.md.

CREDITS

Shout out to jhoonb/archivex for simplifying recursive archiving!

SEE ALSO

Documentation

Overview

Package zipc provides utilities for ZIP archiving files with a specified current working directory.

Index

Constants

View Source
const Version = "0.0.8"

Version is semver.

Variables

This section is empty.

Functions

func Compress added in v0.0.4

func Compress(archivePath string, paths []string, root string) error

Compress creates a compressed archive.

archivePath specifies the target archive paths specifies the source files root specifies an optional top-level directory for the source files

If root is blank (""), then path resolution is informed by the current working directory. Otherwise, path resolution is informed by root.

Types

This section is empty.

Directories

Path Synopsis
cmd
zipc command
Package main provides a zipc executable for creating ZIP archives with a specified current working directory.
Package main provides a zipc executable for creating ZIP archives with a specified current working directory.

Jump to

Keyboard shortcuts

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