file

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct{}

func NewFS

func NewFS() (*FS, error)

func (*FS) Create

func (f *FS) Create(name string) (risoros.File, error)

func (*FS) Mkdir

func (f *FS) Mkdir(name string, perm risoros.FileMode) error

func (*FS) MkdirAll

func (f *FS) MkdirAll(path string, perm risoros.FileMode) error

func (*FS) Open

func (f *FS) Open(name string) (risoros.File, error)

func (*FS) OpenFile

func (f *FS) OpenFile(name string, flag int, perm risoros.FileMode) (risoros.File, error)

func (*FS) ReadDir

func (f *FS) ReadDir(name string) ([]risoros.DirEntry, error)

func (*FS) ReadFile

func (f *FS) ReadFile(name string) ([]byte, error)

func (*FS) Remove

func (f *FS) Remove(name string) error

func (*FS) RemoveAll

func (f *FS) RemoveAll(path string) error

func (*FS) Rename

func (f *FS) Rename(oldPath, newPath string) error

func (*FS) Stat

func (f *FS) Stat(name string) (risoros.FileInfo, error)
func (f *FS) Symlink(oldName, newName string) error

func (*FS) WalkDir

func (f *FS) WalkDir(root string, fn risoros.WalkDirFunc) error

func (*FS) WriteFile

func (f *FS) WriteFile(name string, data []byte, perm risoros.FileMode) error

Jump to

Keyboard shortcuts

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