Documentation ¶
Index ¶
- func AppDir() string
- func Copy(dst, src string) error
- func CopyDir(dstDir, srcDir string) error
- func CopyFile(dst, src string) error
- func Exists(name string) bool
- func ExistsDir(name string) bool
- func ExistsFile(name string) bool
- func FileTouch(elem ...string) error
- func ListWithMatcher(root string, matcher strutil.Matcher) ([]string, error)
- func Move(args ...string) error
- func OpenFileAppend(elem ...string) (*os.File, error)
- func OpenFileRead(elem ...string) (*os.File, error)
- func OpenFileWrite(elem ...string) (*os.File, error)
- func WorkDirWithMatcher(root string, matcher strutil.Matcher, fn fs.WalkDirFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExistsFile ¶
func Move ¶
Move file or folder from src to dst. The behavior same to shell's mv command. function signature same to func Move(srcs..., dst) error.
func WorkDirWithMatcher ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.