fs

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: BSD-1-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFiler added in v1.6.2

type FileFiler struct {
	BasePath string
	// contains filtered or unexported fields
}

func (*FileFiler) Base added in v1.6.2

func (f *FileFiler) Base() string

func (*FileFiler) Create added in v1.6.2

func (f *FileFiler) Create(pathParts ...string) (file io.WriteCloser, path string, err error)

func (*FileFiler) Delete added in v1.6.2

func (f *FileFiler) Delete(path string) error

func (*FileFiler) Initialize added in v1.6.2

func (f *FileFiler) Initialize() error

func (*FileFiler) Open added in v1.6.2

func (f *FileFiler) Open(path string) (file io.ReadCloser, err error)

type Filer added in v1.6.2

type Filer interface {
	// Return the base path.
	Base() string
	// Initialize the filer.
	Initialize() error
	// Open a file for reading.
	Open(path string) (io.ReadCloser, error)
	Create(pathParts ...string) (file io.WriteCloser, path string, err error)
	Delete(path string) error
}

func NewFiler added in v1.6.2

func NewFiler(basePath string) Filer

Jump to

Keyboard shortcuts

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