osfs

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(baseDir string) (billy.Filesystem, error)

New returns a new OS filesystem.

Types

type OS

type OS struct {
	// contains filtered or unexported fields
}

OS is a filesystem based on the os filesystem.

func (*OS) Capabilities

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

Capabilities implements the Capable interface.

func (*OS) Chroot

func (fs *OS) Chroot(path string) (billy.Filesystem, error)

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) Root

func (fs *OS) Root() string

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