Documentation ¶
Index ¶
- func AppendTo(fileName, content string) error
- func Copy(src, dst string) error
- func CopyFile(src, dst string) (int64, error)
- func Empty(fileName string, args ...int64)
- func Exist(fileName string) bool
- func IoSha(fileIO *os.File, args ...string) (string, error)
- func Is(filePath string) bool
- func IsDir(filePath string) bool
- func List(dirPth, suffix string) (files []string, err error)
- func ListDir(dirPth, suffix string) (files []string, err error)
- func MTime(file string) (int64, error)
- func Mode(filePath string) os.FileMode
- func OpenCopy(srcName, dstName string) (int64, error)
- func PathExists(path string) (bool, error)
- func Read(fileName string) (string, error)
- func ReadFromIO(fio io.Reader) (string, error)
- func ReadIo(fileName string) (io.Reader, error)
- func Search(fileName string, paths ...string) (fullpath string, err error)
- func Sha(filePath string, args ...string) (sha string, err error)
- func Size(file string) (int64, error)
- func Walk(dirPth, suffix string) (files []string, err error)
- func WalkDir(dirPth, suffix string) (files []string, err error)
- func Write(fileName, writeStr string) error
- func WriteFile(fileName string, data []byte) error
- func WriteIo(fileName string, fio io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exist ¶
Exist checks whether a file or directory exists. It returns false when the file or directory does not exist.
func IsDir ¶
IsDir returns true if path is a directory, or returns false when it's a file or not exist.
func ReadFromIO ¶
ReadFromIO read io.Reader return string and error
func Write ¶
Write writes data to a file named by filename. If the file does not exist, WriteFile creates it and its upper level paths.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.