Documentation
¶
Index ¶
- type FS
- func (fs *FS) Lstat(name string) (os.FileInfo, error)
- func (fs *FS) Mkdir(name string, perm os.FileMode) error
- func (fs *FS) OpenFile(name string, flag int, perm os.FileMode) (vfs.File, error)
- func (fs *FS) PathSeparator() uint8
- func (fs *FS) PrefixPath(path string) string
- func (fs *FS) ReadDir(path string) ([]os.FileInfo, error)
- func (fs *FS) Remove(name string) error
- func (fs *FS) Rename(oldpath, newpath string) error
- func (fs *FS) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct { vfs.Filesystem // Prefix is used to prefix the path in each vfs.Filesystem operation. Prefix string }
A FS that prefixes the path in each vfs.Filesystem operation.
func Create ¶
func Create(root vfs.Filesystem, prefix string) *FS
Create returns a file system that prefixes all paths and forwards to root.
func (*FS) PathSeparator ¶
PathSeparator implements vfs.Filesystem.
func (*FS) PrefixPath ¶
PrefixPath returns path with the prefix prefixed.
Click to show internal directories.
Click to hide internal directories.