fsutil

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizePath added in v0.0.21

func NormalizePath(name string) string

Types

type MountFS

type MountFS struct {
	// contains filtered or unexported fields
}

func NewMountFS

func NewMountFS(rootFS, mountFS fs.FS, mountPath string) *MountFS

func (*MountFS) Open

func (mfs *MountFS) Open(name string) (fs.File, error)

Open implements fs.FS.

type NoopFS added in v0.0.22

type NoopFS struct{}

func (NoopFS) Open added in v0.0.22

func (nfs NoopFS) Open(path string) (fs.File, error)

Open implements fs.FS.

type PrefixFS

type PrefixFS struct {
	// contains filtered or unexported fields
}

func NewPrefixFS

func NewPrefixFS(fsys fs.FS, prefix string) *PrefixFS

func (*PrefixFS) Open

func (pfs *PrefixFS) Open(name string) (fs.File, error)

Open implements fs.FS.

Jump to

Keyboard shortcuts

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