Documentation ¶
Index ¶
- func GetTarSize(dat []byte) (int, error)
- func GetTargetFileNames(dst string, archive io.Reader) ([]string, error)
- func GetTargetFolderNames(dst string, archive io.Reader) ([]string, error)
- func IsSingleFileArchive(archive []byte) bool
- func PackFolder(src string, buf io.Writer) error
- func UnpackFile(dst, fname string, archive io.Reader, dest io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTarSize ¶
GetTarSize will return the actual size of the tar file for a byte array containing padded tar data.
func GetTargetFileNames ¶
GetTargetFileNames will return all file names in the archive provided.
func GetTargetFolderNames ¶
GetTargetFolderNames will return all affected folders in the archive provided.
func IsSingleFileArchive ¶
IsSingleFileArchive will return true if there is only 1 file stored in the given archive.
func PackFolder ¶
PackFolder will write the given folder as a tar to the given Writer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.