shutil

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: AGPL-3.0 Imports: 5 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) 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