osfs

package
v4.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Apache-2.0 Imports: 7 Imported by: 829

Documentation

Overview

Package osfs provides a billy filesystem for the OS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(baseDir string) billy.Filesystem

New returns a new OS filesystem.

Types

type OS

type OS struct{}

OS is a filesystem based on the os filesystem.

func (*OS) Capabilities added in v4.2.0

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

Capabilities implements the Capable interface.

func (*OS) Create

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

func (*OS) Join

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

func (*OS) Lstat

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

func (*OS) MkdirAll

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

func (*OS) Open

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

func (*OS) OpenFile

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

func (*OS) ReadDir

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

func (*OS) Remove

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

func (*OS) RemoveAll

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

func (*OS) Rename

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

func (*OS) Stat

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

func (*OS) TempFile

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

Jump to

Keyboard shortcuts

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