wrapfs

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	FS   iofs.FS
	Base path.Local
	// contains filtered or unexported fields
}

func New

func New(fsys iofs.FS, base path.Absolute, opts ...Option) (*FS, error)

func (*FS) Abs

func (w *FS) Abs(r path.Relative) path.Absolute

func (*FS) Exists

func (l *FS) Exists(name path.Relative) bool

func (*FS) GetMode

func (d *FS) GetMode(name path.Relative) (iofs.FileMode, error)

func (*FS) Glob added in v0.9.0

func (d *FS) Glob(pattern string) (matches []path.Relative, err error)

func (*FS) ModTime

func (l *FS) ModTime(p path.Relative) (t time.Time, err error)

func (*FS) Reader

func (w *FS) Reader(p path.Relative) (io.ReadCloser, error)

func (*FS) Size

func (l *FS) Size(p path.Relative) int64

type Option added in v0.10.0

type Option func(*FS) error

func OptTrimPath added in v0.10.0

func OptTrimPath(p path.Relative) Option

Jump to

Keyboard shortcuts

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