Documentation ¶
Index ¶
- type FS
- func (b *FS) Chmod(name string, mode fs.FileMode) (err error)
- func (b *FS) Chown(name string, uid, gid int) (err error)
- func (b *FS) Chtimes(name string, atime, mtime time.Time) (err error)
- func (b *FS) Create(name string) (f fs.File, err error)
- func (b *FS) Mkdir(name string, mode fs.FileMode) (err error)
- func (b *FS) MkdirAll(name string, mode fs.FileMode) (err error)
- func (b *FS) Open(name string) (f fs.File, err error)
- func (b *FS) OpenFile(name string, flag int, mode fs.FileMode) (f fs.File, err error)
- func (b *FS) RealPath(name string) (path string, err error)
- func (b *FS) Remove(name string) (err error)
- func (b *FS) RemoveAll(name string) (err error)
- func (b *FS) Rename(oldname, newname string) (err error)
- func (b *FS) Stat(name string) (fi fs.FileInfo, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
FS restricts all operations to a given path within an Fs. The given file name to the operations on this Fs will be prepended with the base path before calling the base Fs. Any file name (after filepath.Clean()) outside this base path will be treated as non existing file.
Note that it does not clean the error messages on return, so you may reveal the real path on errors.
Click to show internal directories.
Click to hide internal directories.