exec

package
v0.0.0-...-c07fb9f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(arg ...string) *exec.Cmd

Command 直接返回 *exec.Cmd 对象

func Path7z

func Path7z() string

Path7z 确保外部不可更改7z可执行程序路径

Types

type FileList

type FileList struct {
	Path       string
	Type       string
	Size       int64
	PackedSize int64
	Modified   string
	Attributes string
	CRC        string
}

func List

func List(s string, pass ...string) (fs []FileList, err error)

type Z7Err

type Z7Err uint8
const (
	KSuccess    Z7Err = 0
	KWarning    Z7Err = 1
	KFatalError Z7Err = 2

	KUserError   Z7Err = 7
	KMemoryError Z7Err = 8

	KUserBreak Z7Err = 255
)

CPP\7zip\UI\Common\ExitCode.h 注释的几个错误,也没有在7-zip.chm中说明

func (Z7Err) Error

func (e Z7Err) Error() string

Jump to

Keyboard shortcuts

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