Documentation ¶
Index ¶
- Constants
- Variables
- func JoinSanitizePath(parent string, elem ...string) (string, error)
- func JoinSanitizePathSlow(parent string, elem ...string) (string, error)
- func MakeFlattened(src, dest string) error
- func Symlink(oldname string, newname string) error
- type Extractor
- type ExtractorOptions
- type Format
Constants ¶
View Source
const ( ZipMethodStore uint16 = 0 ZipMethodDeflate uint16 = 8 ZipMethodBZIP2 uint16 = 12 ZipMethodLZMA uint16 = 14 ZipMethodLZMA2 uint16 = 33 ZipMethodZSTD uint16 = 93 ZipMethodXZ uint16 = 95 ZipMethodJPEG uint16 = 96 ZipMethodWavPack uint16 = 97 ZipMethodPPMd uint16 = 98 ZipMethodAES uint16 = 99 )
CompressionMethod value
Variables ¶
View Source
var (
ErrDangerousPathAccessDenied = errors.New("dangerous path access denied")
)
View Source
var (
ErrUnsupportArchiveFormat = errors.New("unsupport archive format")
)
Functions ¶
func JoinSanitizePathSlow ¶
func MakeFlattened ¶
Types ¶
type Extractor ¶
type Extractor interface { Extract(cwd string, opt *ExtractorOptions) error Close() error }
func NewExtractor ¶
type ExtractorOptions ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.