filesystem

package
v0.0.0-...-11c8b56 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2018 License: AGPL-3.0 Imports: 5 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 struct {
	// contains filtered or unexported fields
}

FS implements files.FS for a local filesystem.

func New

func New() FS

New will open a filesystem.FS at the default path

func (FS) Get

func (f FS) Get(path string) (io.ReadCloser, error)

Get will retrieve the file by joining the given path with FILES.baseDir

func (FS) Init

func (f FS) Init() error

Init will create the baseDir

func (FS) Save

func (f FS) Save(file *os.File) (string, error)

Save will generate a unique file name and save the file to the baseDir

Jump to

Keyboard shortcuts

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