xfilesystem

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT 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 interface {
	fs.FS
	BasePath() string
	Sub(dir string) (FS, error)
}

func NewFileSystem

func NewFileSystem(path string, fsys fs.FS) FS

type RwFS

type RwFS interface {
	fs.FS

	BasePath() string
	Sub(dir string) (RwFS, error)

	Mkdir(name string) error
	CreateFile(name string) (*os.File, error)
	CleanupNewFiles() error
}

func NewRWFileSystem

func NewRWFileSystem(path string, fsys fs.FS) RwFS

Jump to

Keyboard shortcuts

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