osfs

package
v0.0.0-...-4ea8d45 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSFS

type OSFS struct {
	fs.FS
	// contains filtered or unexported fields
}

func NewOSFS

func NewOSFS(rootDir string) *OSFS

func (*OSFS) Create

func (o *OSFS) Create(name string) (storage.File, error)

func (*OSFS) Mkdir

func (o *OSFS) Mkdir(name string, perm fs.FileMode) error

func (*OSFS) Open

func (o *OSFS) Open(name string) (fs.File, error)

func (*OSFS) RemoveAll

func (o *OSFS) RemoveAll(name string) error

func (*OSFS) Stat

func (o *OSFS) Stat(name string) (fs.FileInfo, error)

func (*OSFS) WriteFile

func (o *OSFS) WriteFile(name string, data []byte, perm fs.FileMode) error

Jump to

Keyboard shortcuts

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