Documentation
¶
Overview ¶
Package fsys provides a real-OS filesystem implementation of the FS interface defined in core/interfaces.
Index ¶
- func DefaultFS() interfaces.FS
- type FS
- type OSFS
- func (f *OSFS) MkdirAll(path string, perm fs.FileMode) error
- func (f *OSFS) ReadDir(name string) ([]fs.DirEntry, error)
- func (f *OSFS) ReadFile(name string) ([]byte, error)
- func (f *OSFS) RemoveAll(path string) error
- func (f *OSFS) Rename(oldpath, newpath string) error
- func (f *OSFS) Stat(name string) (fs.FileInfo, error)
- func (f *OSFS) WriteFile(name string, data []byte, perm fs.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultFS ¶
func DefaultFS() interfaces.FS
DefaultFS returns the default filesystem implementation.
Types ¶
type FS ¶
type FS = interfaces.FS
FS is a type alias for the core FS interface, allowing callers to reference fsys.FS without importing core/interfaces directly.
type OSFS ¶
type OSFS struct{}
OSFS is the default filesystem implementation that delegates to the os package. It is safe for concurrent use by multiple goroutines.
Click to show internal directories.
Click to hide internal directories.