package
1.1.13
Repository: https://github.com/jjapplication/fushin.git
Documentation: pkg.go.dev

# Functions

AutoName 自动创建时间戳目录.
CalcSize 计算一个文件大小得可读性值.
ClearFile 清空文件内容.
Copy 复制文件到某路径.
CreateFile 创建文件如果不存在.
GetContent 读取文件内容 错误时返回空.
GetFileMode 获取文件类型.
GetModTime 获取文件修改时间 文件不存在时返回当前时间.
GetSize 获取文件大小.
GetSizeReadable 可读性更好的fileSize.
IsExist 文件或文件夹是否存在.
IsFile 是否为文件.
IsFolder 是否为文件夹.
No description provided by the author
MkDir 按照子目录创建目录.
Name 获取文件的base名称.
NewSerial 新建一个串行的流 无name时 最终会默认增加一个时间戳.
NewSyncer creates a new instance of Syncer with default options.
RmDir 删除目录.
No description provided by the author
同步copy src源目录 dst 目标目录 不存在自动创建.
RsyncAndTar 自动备份并压缩 eg: RsyncAndTar("/test", "/tmp/back", false) 会自动压缩目录到/tmp/back-timestamp.tar.gz.
SetFileMode chmod修改文件权限.
SetFileOwn chown修改属主 user id group id.
Sync copies files and directories inside src into dst.
SyncTo syncs srcs files and directories into to directory.
Tar 会进行目录切换 需要保证目录src存在.
TmpFile 创建/tmp下的临时文件.
UnZip 解压文件.
Zip 压缩文件或目录到指定路径 例如: Zip(/tmp/1.txt, /tmp/1.zip) target不存在zip后缀时默认添加.

# Constants

常用的文件权限mode Usr uid G gid.
常用的文件权限mode Usr uid G gid.
No description provided by the author
常用的文件权限mode Usr uid G gid.
常用的文件权限mode Usr uid G gid.
常用的文件权限mode Usr uid G gid.
常用的文件权限mode Usr uid G gid.
No description provided by the author
常用的文件权限mode Usr uid G gid.
No description provided by the author
常用的文件权限mode Usr uid G gid.
No description provided by the author
常用的文件权限mode Usr uid G gid.
No description provided by the author
No description provided by the author
常用的文件权限mode Usr uid G gid.
常用的文件权限mode Usr uid G gid.
常用的文件权限mode Usr uid G gid.
常用的文件权限mode Usr uid G gid.
常用的文件权限mode Usr uid G gid.
常用的文件权限mode Usr uid G gid.
常用的文件权限mode Usr uid G gid.
常用的文件权限mode Usr uid G gid.

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Type Syncer provides functions for syncing files.

# Interfaces

FileInfo contains the shared methods between os.FileInfo and fs.DirEntry.