go-billy.v4: gopkg.in/src-d/go-billy.v4/osfs Index | Files

package osfs

import "gopkg.in/src-d/go-billy.v4/osfs"

Package osfs provides a billy filesystem for the OS.


Package Files

os.go os_posix.go

func New Uses

func New(baseDir string) billy.Filesystem

New returns a new OS filesystem.

type OS Uses

type OS struct{}

OS is a filesystem based on the os filesystem.

func (*OS) Capabilities Uses

func (fs *OS) Capabilities() billy.Capability

Capabilities implements the Capable interface.

func (*OS) Create Uses

func (fs *OS) Create(filename string) (billy.File, error)

func (*OS) Join Uses

func (fs *OS) Join(elem ...string) string

func (*OS) Lstat Uses

func (fs *OS) Lstat(filename string) (os.FileInfo, error)

func (*OS) MkdirAll Uses

func (fs *OS) MkdirAll(path string, perm os.FileMode) error

func (*OS) Open Uses

func (fs *OS) Open(filename string) (billy.File, error)

func (*OS) OpenFile Uses

func (fs *OS) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error)

func (*OS) ReadDir Uses

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

func (*OS) Remove Uses

func (fs *OS) Remove(filename string) error

func (*OS) RemoveAll Uses

func (fs *OS) RemoveAll(path string) error

func (*OS) Rename Uses

func (fs *OS) Rename(from, to string) error

func (*OS) Stat Uses

func (fs *OS) Stat(filename string) (os.FileInfo, error)
func (fs *OS) Symlink(target, link string) error

func (*OS) TempFile Uses

func (fs *OS) TempFile(dir, prefix string) (billy.File, error)

Package osfs imports 7 packages (graph) and is imported by 91 packages. Updated 2019-12-07. Refresh now. Tools for package owners.