Versions in this module Expand all Collapse all v1 v1.1.0 Jun 6, 2023 Changes in this version + const SupportsSymlinkNoFollow + const UTIME_NOW + const UTIME_OMIT + func Adapt(fs fs.FS) fsapi.FS + func Chown(path string, uid, gid int) syscall.Errno + func Lchown(path string, uid, gid int) syscall.Errno + func NewDirFS(dir string) fsapi.FS + func NewReadFS(fs fsapi.FS) fsapi.FS + func NewRootFS(fs []fsapi.FS, guestPaths []string) (fsapi.FS, error) + func NewStdioFile(stdin bool, f fs.File) (fsapi.File, error) + func OpenFSFile(fs fs.FS, path string, flag int, perm fs.FileMode) (fsapi.File, syscall.Errno) + func OpenFile(path string, flag int, perm fs.FileMode) (*os.File, syscall.Errno) + func OpenOSFile(path string, flag int, perm fs.FileMode) (fsapi.File, syscall.Errno) + func Rename(from, to string) syscall.Errno + func StatFromDefaultFileInfo(t fs.FileInfo) fsapi.Stat_t + func StripPrefixesAndTrailingSlash(path string) string + func Unlink(name string) (errno syscall.Errno) — darwin/amd64, js/wasm, linux/amd64 + func Unlink(name string) syscall.Errno — windows/amd64 + func Utimens(path string, times *[2]syscall.Timespec, symlinkFollow bool) syscall.Errno + type CompositeFS struct + func (c *CompositeFS) Chmod(path string, perm fs.FileMode) syscall.Errno + func (c *CompositeFS) Chown(path string, uid, gid int) syscall.Errno + func (c *CompositeFS) FS() (fs []fsapi.FS) + func (c *CompositeFS) GuestPaths() (guestPaths []string) + func (c *CompositeFS) Lchown(path string, uid, gid int) syscall.Errno + func (c *CompositeFS) Link(oldName, newName string) syscall.Errno + func (c *CompositeFS) Lstat(path string) (fsapi.Stat_t, syscall.Errno) + func (c *CompositeFS) Mkdir(path string, perm fs.FileMode) syscall.Errno + func (c *CompositeFS) OpenFile(path string, flag int, perm fs.FileMode) (f fsapi.File, err syscall.Errno) + func (c *CompositeFS) Readlink(path string) (string, syscall.Errno) + func (c *CompositeFS) Rename(from, to string) syscall.Errno + func (c *CompositeFS) Rmdir(path string) syscall.Errno + func (c *CompositeFS) Stat(path string) (fsapi.Stat_t, syscall.Errno) + func (c *CompositeFS) String() string + func (c *CompositeFS) Symlink(oldName, link string) (err syscall.Errno) + func (c *CompositeFS) Truncate(path string, size int64) syscall.Errno + func (c *CompositeFS) Unlink(path string) syscall.Errno + func (c *CompositeFS) Utimens(path string, times *[2]syscall.Timespec, symlinkFollow bool) syscall.Errno