Versions in this module Expand all Collapse all v0 v0.1.1 Sep 6, 2022 v0.1.0 Aug 30, 2022 Changes in this version + func ChangeExtension(fileName string, ext string) string + type DiskFS struct + func Disk(basePath string) *DiskFS + func (d DiskFS) ChangeDirectory(dir string) FS + func (d DiskFS) Exists(filePath string) bool + func (d DiskFS) List(dirPath string, filters ...FileFilter) ([]FileInfo, error) + func (d DiskFS) Move(fromPath string, toPath string) error + func (d DiskFS) Read(filePath string) (ReaderFile, error) + func (d DiskFS) Remove(fileOrDirPath string) error + func (d DiskFS) Stat(filePath string) (FileInfo, error) + func (d DiskFS) WorkingDirectory() string + func (d DiskFS) Write(filePath string) (WriterFile, error) + type FS interface + ChangeDirectory func(path string) FS + Exists func(path string) bool + List func(path string, filters ...FileFilter) ([]FileInfo, error) + Move func(fromPath string, toPath string) error + Read func(path string) (ReaderFile, error) + Remove func(path string) error + Stat func(path string) (FileInfo, error) + WorkingDirectory func() string + Write func(path string) (WriterFile, error) + type FileFilter func(info FileInfo) bool + func WithEverything() FileFilter + func WithExt(extension string) FileFilter + func WithExts(extensions ...string) FileFilter + func WithPattern(pattern string) FileFilter + type FileInfo fs.FileInfo + type ReaderFile interface + type WriterFile interface