appfs

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppFs = newFS("/")
)

Functions

func Abs

func Abs(path string) (string, error)

func Chdir

func Chdir(dir string) error

func Chmod

func Chmod(name string, mode os.FileMode) error

func Chown

func Chown(name string, uid, gid int) error

func Create

func Create(name string) (*os.File, error)
func EvalSymlinks(path string) (string, error)

func Fake

func Fake(path string)

func Glob

func Glob(pattern string) (matches []string, err error)

func Lstat

func Lstat(name string) (os.FileInfo, error)

func Mkdir

func Mkdir(name string, perm os.FileMode) error

func MkdirAll

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

func Open

func Open(name string) (*os.File, error)

func OpenFile

func OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)

func OsPath

func OsPath(path string) string

func ReadDir

func ReadDir(name string) ([]os.DirEntry, error)

func ReadFile

func ReadFile(name string) ([]byte, error)
func Readlink(name string) (string, error)

func Remove

func Remove(name string) error

func RemoveAll

func RemoveAll(path string) error

func Rename

func Rename(oldpath, newpath string) error

func Reset

func Reset()

func Stat

func Stat(name string) (os.FileInfo, error)
func Symlink(oldname, newname string) error

func Walk

func Walk(root string, fn filepath.WalkFunc) error

func WalkDir

func WalkDir(root string, fn fs.WalkDirFunc) error

func WriteFile

func WriteFile(name string, data []byte, perm os.FileMode) error

Types

type FS

type FS struct {
	afero.Fs
	Root string
}

Jump to

Keyboard shortcuts

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