Documentation
¶
Index ¶
- func Symlinkat(cwd, file, linkTo string) error
- type OSFS
- func (ofs *OSFS) Abs(name string) (string, error)
- func (ofs *OSFS) Chmod(name string, mode fs.FileMode) error
- func (ofs *OSFS) Chown(name string, uid, gid int) error
- func (ofs *OSFS) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (ofs *OSFS) Create(name string) (fs.File, error)
- func (ofs *OSFS) Glob(pattern string) ([]string, error)
- func (ofs *OSFS) Lstat(name string) (fs.FileInfo, error)
- func (ofs *OSFS) Mkdir(name string, perm fs.FileMode) error
- func (ofs *OSFS) MkdirAll(name string, perm fs.FileMode) error
- func (ofs *OSFS) Open(name string) (fs.File, error)
- func (ofs *OSFS) OpenFile(name string, flag int, perm fs.FileMode) (fs.File, error)
- func (ofs *OSFS) ReadDir(name string) ([]fs.DirEntry, error)
- func (ofs *OSFS) ReadFile(name string) ([]byte, error)
- func (ofs *OSFS) Readlink(name string) (string, error)
- func (ofs *OSFS) Remove(name string) error
- func (ofs *OSFS) RemoveAll(name string) error
- func (ofs *OSFS) Rename(oldname, newname string) error
- func (ofs *OSFS) SetStrict(s bool) *OSFS
- func (ofs *OSFS) SetWindowsFHSLookup(lookup func(path string) (string, error)) *OSFS
- func (ofs *OSFS) Stat(name string) (fs.FileInfo, error)
- func (ofs *OSFS) Sub(dir string) (fs.FS, error)
- func (ofs *OSFS) Symlink(oldname, newname string) error
- func (ofs *OSFS) WriteFile(name string, data []byte, perm fs.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Symlinkat ¶
Symlinkat creates symlink relative to cwd rather actual working dir ref: https://man7.org/linux/man-pages/man2/symlink.2.html
Types ¶
type OSFS ¶
type OSFS struct {
// contains filtered or unexported fields
}
OSFS is a context aware filesystem abstration for afero.FS and io/fs.FS
func NewOSFS ¶
NewOSFS creates a new filesystem abstraction for real filesystem set strictIOFS to true to only allow fs path value getCwd is used to determine current working dir, the string return value should be valid system file path
func (*OSFS) SetWindowsFHSLookup ¶
Click to show internal directories.
Click to hide internal directories.