Documentation
¶
Overview ¶
Package rwfilefs extends the fs.FS interfaces to include the ability to write and remove files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapFS ¶
MapFS is an implementation of fstest.MapFS that implements the RWFileFS interface.
func (MapFS) RemoveFile ¶
RemoveFile implements the RWFileFS interface.
type OSDirFS ¶
OSDirFS is an implementation of os.DirFS that implements the RWFileFS interface.
func NewOSDirFS ¶
NewOSDirFS returns a file system for the tree of files rooted at the directory dir.
Note that all caveats of os.DirFS apply here, especially given the destructive nature of these methods.
func (OSDirFS) RemoveFile ¶
RemoveFile implements the RWFileFS interface.
type RWFileFS ¶
type RWFileFS interface {
fs.ReadFileFS
fs.StatFS
RemoveFileFS
WriteFileFS
}
Click to show internal directories.
Click to hide internal directories.