Documentation ¶
Index ¶
- Variables
- func Action(cli *cli.Context) error
- func BatchRenameFiles(dir, subStr, newName string) error
- func CheckIsHidden(file os.FileInfo) bool
- func CheckIsKeyword(filename, subStr, dir, newName string) error
- func GrantReadPermission(path string) error
- func HasReadPermission(path string) bool
- func IsDir(path string) bool
- func IsPathExist(path string) bool
- func ReplaceFilename(filename, subStr, dir, newName string) error
- type DirInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cli.Command{ Name: "rename", Aliases: []string{"r"}, Usage: "文件重命名", Action: Action, SkipFlagParsing: false, Flags: []cli.Flag{ &cli.StringFlag{ Name: "path", Aliases: []string{"p"}, Usage: "指定需要替换文件名的目录", Value: "", }, }, }
Functions ¶
func BatchRenameFiles ¶
func CheckIsHidden ¶
func CheckIsKeyword ¶
func GrantReadPermission ¶ added in v0.0.2
GrantReadPermission 赋予文件夹可读权限
func HasReadPermission ¶ added in v0.0.2
HasReadPermission 判断文件夹是否具有可读权限
func IsPathExist ¶
func ReplaceFilename ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.