Versions in this module Expand all Collapse all v1 v1.0.1 May 31, 2021 v1.0.0 May 31, 2021 Changes in this version + const Separator + var DefaultPerm = os.FileMode(0666) + var DefaultReadBuffer = 1024 + func Abs(path string) string + func Basename(path string) string + func Chmod(path string, mode os.FileMode) error + func Copy(src string, dst string) error + func CopyDir(src string, dst string) (err error) + func CopyFile(src, dst string) (err error) + func Create(path string) (*os.File, error) + func Dir(path string) string + func DirNames(path string) ([]string, error) + func Exists(path string) bool + func Ext(path string) string + func FormatSize(raw int64) string + func GetBytes(path string) []byte + func GetBytesByTwoOffsets(reader io.ReaderAt, start int64, end int64) []byte + func GetBytesByTwoOffsetsByPath(path string, start int64, end int64) []byte + func GetBytesTilChar(reader io.ReaderAt, char byte, start int64) ([]byte, int64) + func GetBytesTilCharByPath(path string, char byte, start int64) ([]byte, int64) + func GetContents(path string) string + func GetNextCharOffset(reader io.ReaderAt, char byte, start int64) int64 + func GetNextCharOffsetByPath(path string, char byte, start int64) int64 + func Glob(pattern string, onlyNames ...bool) ([]string, error) + func Home() (string, error) + func Info(path string) (os.FileInfo, error) + func IsDir(path string) bool + func IsEmpty(path string) bool + func IsFile(path string) bool + func IsReadable(path string) bool + func IsWritable(path string) bool + func Join(paths ...string) string + func MTime(path string) int64 + func MTimeMillisecond(path string) int64 + func MainPkgPath() string + func Mkdir(path string) error + func Move(src string, dst string) error + func Name(path string) string + func Open(path string) (*os.File, error) + func OpenFile(path string, flag int, perm os.FileMode) (*os.File, error) + func OpenWithFlag(path string, flag int) (*os.File, error) + func OpenWithFlagPerm(path string, flag int, perm os.FileMode) (*os.File, error) + func PutBytes(path string, content []byte) error + func PutBytesAppend(path string, content []byte) error + func PutContents(path string, content string) error + func PutContentsAppend(path string, content string) error + func Pwd() string + func ReadableSize(path string) string + func RealPath(path string) string + func Remove(path string) error + func Rename(src string, dst string) error + func Replace(search, replace, path, pattern string, recursive ...bool) error + func ReplaceFunc(f func(path, content string) string, path, pattern string, recursive ...bool) error + func ScanDir(path string, pattern string, recursive ...bool) ([]string, error) + func ScanDirFile(path string, pattern string, recursive ...bool) ([]string, error) + func Search(name string, prioritySearchPaths ...string) (realPath string, err error) + func SelfDir() string + func SelfName() string + func SelfPath() string + func Size(path string) int64 + func SortFiles(files []string) []string + func Stat(path string) (os.FileInfo, error) + func TempDir() string + func Truncate(path string, size int) error