shutil

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ZipDirectory

func ZipDirectory(root, savefile string, preserveModTime bool) (err error)

ZipDirectory zips the entire directory at "root", writing a .zip file to "savefile"

By default, all file headers are preserved, including modification time. However, this means identical files with different timestamps will create zipfiles with different hashes. Set preserveModTime=false to ignore modification time and generate zipfiles with consistent hashes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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