polyfill

package
v4.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(fs billy.Basic) billy.Filesystem

New creates a new filesystem wrapping up 'fs' the intercepts all the calls made and errors if fs doesn't implement any of the billy interfaces.

Types

type Polyfill

type Polyfill struct {
	billy.Basic
	// contains filtered or unexported fields
}

Polyfill is a helper that implements all missing method from billy.Filesystem.

func (*Polyfill) Chroot

func (h *Polyfill) Chroot(path string) (billy.Filesystem, error)

func (*Polyfill) Lstat

func (h *Polyfill) Lstat(path string) (os.FileInfo, error)

func (*Polyfill) MkdirAll

func (h *Polyfill) MkdirAll(filename string, perm os.FileMode) error

func (*Polyfill) ReadDir

func (h *Polyfill) ReadDir(path string) ([]os.FileInfo, error)
func (h *Polyfill) Readlink(link string) (string, error)

func (*Polyfill) Root

func (h *Polyfill) Root() string
func (h *Polyfill) Symlink(target, link string) error

func (*Polyfill) TempFile

func (h *Polyfill) TempFile(dir, prefix string) (billy.File, error)

func (*Polyfill) Underlying

func (h *Polyfill) Underlying() billy.Basic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL