Documentation ¶
Index ¶
- type MountDir
- func (m *MountDir) Close() error
- func (m *MountDir) IsDir() bool
- func (m *MountDir) ModTime() time.Time
- func (*MountDir) Mode() fs.FileMode
- func (m *MountDir) Mount(path string, filesystem fs.FS) error
- func (*MountDir) Name() string
- func (m *MountDir) Open(name string) (fs.File, error)
- func (m *MountDir) Read([]byte) (int, error)
- func (m *MountDir) ReadDir(n int) ([]fs.DirEntry, error)
- func (*MountDir) Size() int64
- func (m *MountDir) Stat() (fs.FileInfo, error)
- func (m *MountDir) Sys() any
- func (m *MountDir) Unmount(prefix string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MountDir ¶
type MountDir struct {
// contains filtered or unexported fields
}
MountDir represents the root of a mountfs filesystem. As such, it is always a directory with name ".".
It implements fs.FS, fs.File, fs.ReadDirFile and fs.FileInfo.
func (*MountDir) Mount ¶
Mount makes the files available in filesystem available under the "/prefix"
Click to show internal directories.
Click to hide internal directories.