fsutil

package
v0.0.0-...-0340031 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppDir

func AppDir() string

func Copy

func Copy(dst, src string) error

Copy file or folder from src to dst. the behavior same to shell's cp command.

func CopyDir

func CopyDir(dstDir, srcDir string) error

func CopyFile

func CopyFile(dst, src string) error

func Exists

func Exists(name string) bool

func ExistsDir

func ExistsDir(name string) bool

func ExistsFile

func ExistsFile(name string) bool

func FileTouch

func FileTouch(elem ...string) error

func ListWithMatcher

func ListWithMatcher(root string, matcher strutil.Matcher) ([]string, error)

func Move

func Move(args ...string) error

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 OpenFileAppend

func OpenFileAppend(elem ...string) (*os.File, error)

func OpenFileRead

func OpenFileRead(elem ...string) (*os.File, error)

func OpenFileWrite

func OpenFileWrite(elem ...string) (*os.File, error)

func WorkDirWithMatcher

func WorkDirWithMatcher(root string, matcher strutil.Matcher, fn fs.WalkDirFunc) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL