Documentation
¶
Overview ¶
Package vfs implements a layered filesystem for use with billy.Filesystem
Index ¶
- func Walk(fs billy.Filesystem, root string, walkFn filepath.WalkFunc) error
- type LayeredFS
- func (l *LayeredFS) Chmod(name string, mode os.FileMode) error
- func (l *LayeredFS) Chown(name string, uid, gid int) error
- func (l *LayeredFS) Chroot(path string) (billy.Filesystem, error)
- func (l *LayeredFS) Chtimes(name string, atime, mtime time.Time) error
- func (l *LayeredFS) Create(path string) (billy.File, error)
- func (l *LayeredFS) Join(elem ...string) string
- func (l *LayeredFS) Lchown(name string, uid, gid int) error
- func (l *LayeredFS) Lstat(path string) (os.FileInfo, error)
- func (l *LayeredFS) MkdirAll(dir string, perm os.FileMode) error
- func (l *LayeredFS) Open(path string) (billy.File, error)
- func (l *LayeredFS) OpenFile(path string, flag int, perm os.FileMode) (billy.File, error)
- func (l *LayeredFS) ReadDir(dir string) ([]os.FileInfo, error)
- func (l *LayeredFS) Readlink(path string) (string, error)
- func (l *LayeredFS) Remove(path string) error
- func (l *LayeredFS) Rename(oldPath, newPath string) error
- func (l *LayeredFS) Root() string
- func (l *LayeredFS) Stat(path string) (os.FileInfo, error)
- func (l *LayeredFS) Symlink(target, link string) error
- func (l *LayeredFS) TempFile(dir, prefix string) (billy.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Walk ¶
Walk walks the file tree rooted at root, calling walkFn for each file or directory in the tree, including root. All errors that arise visiting files and directories are filtered by walkFn. The files are walked in lexical order, which makes the output deterministic but means that for very large directories Walk can be inefficient. Walk does not follow symbolic links.
This is a straight copy of filepath.Walk using a billy.Filesystem
Types ¶
type LayeredFS ¶
type LayeredFS struct {
// contains filtered or unexported fields
}
LayeredFS implements the billy.Filesystem interface
func NewLayeredFS ¶
func NewLayeredFS(filesystems ...billy.Filesystem) *LayeredFS
NewLayeredFile creates a layered file-system from a array of billy.Filesystem instances
Click to show internal directories.
Click to hide internal directories.