Documentation ¶
Index ¶
- func Chmod(path string, permission os.FileMode) error
- func Chown(path, user, group string) error
- func Compress(dir string, src []string, dst string) error
- func CountX(path string) (int64, error)
- func Cp(src, dst string) error
- func Empty(path string) bool
- func Exists(path string) bool
- func FileInfo(path string) (os.FileInfo, error)
- func GetSymlink(path string) string
- func IsDir(path string) bool
- func IsHidden(path string) bool
- func IsSymlink(mode os.FileMode) bool
- func ListCompress(src string) ([]string, error)
- func Mkdir(path string, permission os.FileMode) error
- func Mv(src, dst string) error
- func Read(path string) (string, error)
- func ReadBytes(path string) ([]byte, error)
- func ReadDir(path string) ([]os.DirEntry, error)
- func Remove(path string) error
- func Search(path, keyword string, sub bool) (map[string]os.FileInfo, error)
- func SearchX(path, keyword string, sub bool) (map[string]os.FileInfo, error)
- func Size(path string) (int64, error)
- func SizeX(path string) (int64, error)
- func TempDir(prefix string) (string, error)
- func TempFile(dir, prefix string) (*os.File, error)
- func UnCompress(src string, dst string) error
- func Write(path string, data string, permission os.FileMode) error
- func WriteAppend(path string, data string, permission os.FileMode) error
- type FormatArchive
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FormatArchive ¶
type FormatArchive string
const ( Zip FormatArchive = "zip" Bz2 FormatArchive = "bz2" Tar FormatArchive = "tar" TGz FormatArchive = "tgz" Xz FormatArchive = "xz" SevenZip FormatArchive = "7z" )
Click to show internal directories.
Click to hide internal directories.