Versions in this module Expand all Collapse all v0 v0.9.0 May 4, 2021 Changes in this version + var ErrFileTooBig = errors.New("file is too large") + var ErrHomeDir = errors.New("cannot resolve home directory") + var ErrNotDir = errors.New("not a directory") + var ErrNotFile = errors.New("not a file") + func Abs(path string) (string, error) + func AppendFile(path string, data []byte, mode fs.FileMode) error + func Dir(path, ext string, maxfile int) ([]string, error) + func HomeDir() string + func IsEmptyDir(path string) (bool, error) + func IsPath(path string, t ...PathType) bool + func ReadFile(path string, maxBytes int64) ([]byte, error) + func RemoveEmptyDir(path string) error + func RemoveFile(path string, deleteEmptyDir bool) error + func Subdir(path string, maxfile int) ([]string, error) + func WriteFile(path string, data []byte, mode fs.FileMode) error + type PathType uint32 + const BadPath + const Directory + const File + const IrregularPath + const NotExist + func TestPath(path string) PathType