filesystem

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0 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 struct {
}

func New

func New(config *config.Config) Fs

New returns the file system.

func (*Fs) DirExists

func (*Fs) DirExists(location string) (bool, error)

DirExists indicates if a directory exists or not.

func (*Fs) Exists

func (*Fs) Exists(location string) (bool, error)

Exists indicates if a location exists on the file system (could be a file or a directory).

func (*Fs) IsDir

func (*Fs) IsDir(location string) (bool, error)

IsDir indicates if a location is a directory or not.

func (*Fs) ReadDir

func (*Fs) ReadDir(location string) ([]os.FileInfo, error)

func (*Fs) ReadFile

func (*Fs) ReadFile(location string) ([]byte, error)

ReadFile returns the content of a file.

func (*Fs) Remove

func (*Fs) Remove(location string) error

func (*Fs) WriteFile

func (*Fs) WriteFile(location string, data []byte) error

Jump to

Keyboard shortcuts

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