Documentation ¶
Index ¶
- Constants
- func CreateSymLink(oldname, newname string) (err error)
- func DNForAPTonLinux() string
- func DecompressBySystemCommand(srcPath, dstDir string) (err error)
- func Extract(srcFile, destDir string) (err error)
- func GetFileLastModifiedTime(fPath string) int64
- func JoinPath(pathStr ...string) (s string)
- func MoveFileOnUnixSudo(from, to string) error
- func OpenURL(dUrl string) error
- func Untar(srcPath, dstDir string) (err error)
- func Unzip(srcPath, dstDir string) (err error)
- func UseArchiver(srcPath string) bool
- type HomeDirFinder
Constants ¶
View Source
const ( WinPathSeperator string = ";" UnixPathSeperator string = ":" )
View Source
const ( LinuxInstallerApt string = "apt" LinuxInstallerYum string = "yum" LinuxInstallerDnf string = "dnf" )
Variables ¶
This section is empty.
Functions ¶
func CreateSymLink ¶
Create symbolic links for directories.
func DNForAPTonLinux ¶
func DNForAPTonLinux() string
func DecompressBySystemCommand ¶ added in v0.6.2
func GetFileLastModifiedTime ¶
func MoveFileOnUnixSudo ¶
Types ¶
type HomeDirFinder ¶
type HomeDirFinder struct {
// contains filtered or unexported fields
}
Find home dir of unzipped directories.
func NewFinder ¶
func NewFinder(flagFiles ...string) (h *HomeDirFinder)
func (*HomeDirFinder) Clear ¶
func (h *HomeDirFinder) Clear()
func (*HomeDirFinder) Find ¶
func (h *HomeDirFinder) Find(startDir string)
func (*HomeDirFinder) GetDirName ¶
func (h *HomeDirFinder) GetDirName() string
func (*HomeDirFinder) SetFlagDirExcepted ¶
func (h *HomeDirFinder) SetFlagDirExcepted(ok bool)
func (*HomeDirFinder) SetFlags ¶
func (h *HomeDirFinder) SetFlags(flagFiles ...string)
Click to show internal directories.
Click to hide internal directories.