filesystem

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRelativePath occurs when path is relative (contains ".."")
	ErrRelativePath = errors.New("pathname contains relatives paths")
)

Functions

func New

func New(config Config) (provider.Storage, error)

New creates new App from Config

Types

type ByHybridSort

type ByHybridSort []provider.StorageItem

ByHybridSort implements Sorter by type, name then modification time

func (ByHybridSort) Len

func (a ByHybridSort) Len() int

func (ByHybridSort) Less

func (a ByHybridSort) Less(i, j int) bool

func (ByHybridSort) Swap

func (a ByHybridSort) Swap(i, j int)

type Config

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

Config of package

func Flags

func Flags(fs *flag.FlagSet, prefix string) Config

Flags adds flags for configuring package

Jump to

Keyboard shortcuts

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