Documentation ¶
Index ¶
- type FS
- func (fs *FS) Chmod(name string, mode hackpadfs.FileMode) error
- func (fs *FS) Chown(name string, uid, gid int) error
- func (fs *FS) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (fs *FS) Create(name string) (hackpadfs.File, error)
- func (fs *FS) Lstat(name string) (hackpadfs.FileInfo, error)
- func (fs *FS) Mkdir(name string, perm hackpadfs.FileMode) error
- func (fs *FS) MkdirAll(path string, perm hackpadfs.FileMode) error
- func (fs *FS) Open(name string) (hackpadfs.File, error)
- func (fs *FS) OpenFile(name string, flag int, perm hackpadfs.FileMode) (hackpadfs.File, error)
- func (fs *FS) ReadDir(name string) ([]hackpadfs.DirEntry, error)
- func (fs *FS) ReadFile(name string) ([]byte, error)
- func (fs *FS) Remove(name string) error
- func (fs *FS) RemoveAll(name string) error
- func (fs *FS) Rename(oldname, newname string) error
- func (fs *FS) Stat(name string) (hackpadfs.FileInfo, error)
- func (fs *FS) Sub(dir string) (hackpadfs.FS, error)
- func (fs *FS) Symlink(oldname, newname string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS wraps the 'os' package as an FS implementation.
func NewFS ¶
func NewFS() *FS
NewFS returns a new FS. All file paths are relative to the root path ('/' on Unix). Use fs.Sub() to select a different root path.
Click to show internal directories.
Click to hide internal directories.