wrapvfs

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(fs vfs.FS, replacements Replacements) vfs.FS

Types

type Replacements

type Replacements struct {
	UseCaseSensitiveFileNames func() bool
	FileExists                func(string) bool
	ReadFile                  func(string) (string, bool)
	WriteFile                 func(string, string) error
	AppendFile                func(string, string) error
	Remove                    func(string) error
	Chtimes                   func(string, time.Time, time.Time) error
	DirectoryExists           func(string) bool
	GetAccessibleEntries      func(string) vfs.Entries
	Stat                      func(string) vfs.FileInfo
	WalkDir                   func(string, vfs.WalkDirFunc) error
	Realpath                  func(string) string
}

Jump to

Keyboard shortcuts

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