Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem interface {
ReadOnlyFileSystem
PathFileSystem
WriteFileSystem
}
FileSystem defines the methods of an abstract filesystem.
type PathFileSystem ¶
type ReadOnlyFileSystem ¶
type ReadOnlyFileSystem interface {
fs.ReadDirFS
fs.ReadFileFS
// OpenFile like Open but opens the named file with specified flag and perm.
OpenFile(name string, flag int, perm os.FileMode) (fs.File, error)
// Stat returns a FileInfo describing the file.
// If there is an error, it should be of type *PathError.
Stat(name string) (fs.FileInfo, error)
// ExtraInfo returns extra information about the fs.
ExtraInfo(string) map[string]any
}
type SyncFileSystem ¶
type SyncFileSystem interface {
Sync() error
}
SyncFileSystem defines the methods of an abstract filesystem that can sync. It's optional to implement this interface.
type TrashFileSystem ¶
TrashFileSystem defines the methods of an abstract filesystem that can throw files away. It's optional to implement this interface.
Click to show internal directories.
Click to hide internal directories.