Documentation
¶
Index ¶
- func CreateTGZ(ctx context.Context, filenames map[string]string, dest string) error
- func ExtractTGZ(ctx context.Context, archivePath string, dest string) error
- func ExtractTGZStripComponents(ctx context.Context, archivePath string, dest string, stripComponents int) error
- func SafeArchivePath(destDir, hdrName string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafeArchivePath ¶ added in v1.130.9
SafeArchivePath returns the absolute path within destDir where an archive entry named hdrName should be written, or an error if hdrName attempts to escape destDir. Existing symlinks in the destination are treated as escapes so that an entry whose parent path is a symlink cannot be written outside the extraction root.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.