Documentation
¶
Index ¶
- func Chmod(path string, mode os.FileMode) error
- func ChmodR(ctx context.Context, path string, mode os.FileMode) error
- func Chown(path, owner, group string) error
- func ChownR(ctx context.Context, path, owner, group string) error
- func Compress(ctx context.Context, dir string, src []string, dst string) error
- func CompressShell(dir string, src []string, dst string, verbose bool) (string, error)
- func Count(ctx context.Context, path string) (int64, error)
- func Cp(ctx context.Context, src, dst string) error
- func Empty(path string) bool
- func Exists(path string) bool
- func IsDir(path string) bool
- func Mv(ctx context.Context, src, dst string) error
- func Read(path string) (string, error)
- func Remove(path string) error
- func Size(ctx context.Context, path string) (int64, error)
- func UnCompress(ctx context.Context, src, dst string) error
- func UnCompressShell(src, dst string, verbose bool) (string, error)
- func Write(path string, data string, perm os.FileMode) error
- type ArchiveFormat
- type Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressShell ¶ added in v3.2.6
CompressShell verbose 时逐文件输出,供后台任务日志查看进度
func UnCompressShell ¶ added in v3.2.6
Types ¶
type ArchiveFormat ¶ added in v3.3.7
type ArchiveFormat string
const ( Zip ArchiveFormat = "zip" SevenZip ArchiveFormat = "7z" Tar ArchiveFormat = "tar" TGz ArchiveFormat = "tgz" TBz2 ArchiveFormat = "tbz2" TXz ArchiveFormat = "txz" TZst ArchiveFormat = "tzst" Gz ArchiveFormat = "gz" Bz2 ArchiveFormat = "bz2" Xz ArchiveFormat = "xz" Zst ArchiveFormat = "zst" )
Click to show internal directories.
Click to hide internal directories.