Versions in this module Expand all Collapse all v0 v0.1.0 Feb 21, 2025 Changes in this version + func ReadLine(name string) iter.Seq[string] + func Walk(name string) iter.Seq2[string, fs.FileInfo] v0.0.1 Aug 11, 2023 Changes in this version + var DefaultDirPerm fs.FileMode = 0755 + var DefaultFilePerm fs.FileMode = 0644 + func Copy(srcpath, dstpath string) error + func Create(name string, opt ...Option) (*os.File, error) + func CreateTemp(dir string, pattern string, opt ...Option) (*os.File, error) + func Exists(name string) (bool, error) + func IsDir(name string) (bool, error) + func IsEmptyDir(name string) (bool, error) + func Mkdir(name string, opt ...Option) error + func MkdirAll(path string, opt ...Option) error + func MkdirTemp(dir string, pattern string, opt ...Option) (string, error) + func Move(oldpath, newpath string) error + func MustExists(name string) bool + func MustIsDir(name string) bool + func MustIsEmptyDir(name string) bool + func MustReadDir(name string) []fs.DirEntry + func MustReadDirnames(name string) []string + func MustReaddir(name string) []fs.FileInfo + func Open(name string, opt ...Option) (*os.File, error) + func OpenFile(name string, flag int, opt ...Option) (*os.File, error) + func ReadDir(name string) ([]fs.DirEntry, error) + func ReadDirnames(name string) ([]string, error) + func ReadFile(name string) ([]byte, error) + func Readdir(name string) ([]fs.FileInfo, error) + func Remove(name string) error + func RemoveAll(path string) error + func Rename(oldpath, newpath string) error + func SetDefaultDirFileMode(perm fs.FileMode) + func SetDefaultFileMode(perm fs.FileMode) + func WriteFile(name string, data []byte, opt ...Option) error + type FileReader struct + func OpenFileReader(name string) (*FileReader, error) + func (r *FileReader) Close() error + func (r *FileReader) Read(p []byte) (int, error) + func (r *FileReader) ReadAt(p []byte, off int64) (int, error) + type FileWriter struct + func OpenFileWriter(name string, opt ...Option) (*FileWriter, error) + func (w *FileWriter) Close() error + func (w *FileWriter) Write(p []byte) (int, error) + func (w *FileWriter) WriteAt(b []byte, off int64) (int, error) + type Option func(options) options + func WithDirPerm(perm fs.FileMode) Option + func WithFilePerm(perm fs.FileMode) Option