filesystem

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const Name = "fs"

Variables

View Source
var (
	ErrRelativePath = errors.New("pathname contains relatives paths")
)

Functions

This section is empty.

Types

type App

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

func New

func New(directory string) (App, error)

func (App) ConvertError added in v0.3.4

func (a App) ConvertError(err error) error

func (App) CreateDir

func (a App) CreateDir(_ context.Context, name string) error

func (App) Enabled added in v0.0.2

func (a App) Enabled() bool

func (App) Info

func (a App) Info(_ context.Context, pathname string) (model.Item, error)

func (App) List

func (a App) List(_ context.Context, pathname string) ([]model.Item, error)

func (App) Name added in v0.0.3

func (a App) Name() string

func (App) Path added in v0.0.3

func (a App) Path(pathname string) string

func (App) ReadFrom added in v0.1.0

func (a App) ReadFrom(_ context.Context, pathname string) (io.ReadSeekCloser, error)

func (App) Remove

func (a App) Remove(_ context.Context, pathname string) error

func (App) Rename

func (a App) Rename(ctx context.Context, oldName, newName string) error

func (App) UpdateDate

func (a App) UpdateDate(_ context.Context, pathname string, date time.Time) error

func (App) Walk

func (a App) Walk(_ context.Context, pathname string, walkFn func(model.Item) error) error

func (App) WithIgnoreFn

func (a App) WithIgnoreFn(ignoreFn func(model.Item) bool) model.Storage

func (App) WriteTo added in v0.1.0

func (a App) WriteTo(_ context.Context, pathname string, reader io.Reader, _ model.WriteOpts) error

Jump to

Keyboard shortcuts

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