fs

package
v0.0.0-...-850ae45 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: Apache-2.0 Imports: 9 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 (*FS) Chmod

func (fs *FS) Chmod(path string, mode os.FileMode) error

func (*FS) Compress

func (fs *FS) Compress(name string, path string, contentPaths []string) error

func (*FS) Copy

func (fs *FS) Copy(source string, destination string) error

func (*FS) CreateDir

func (fs *FS) CreateDir(path string) error

func (*FS) DeleteAllExcept

func (fs *FS) DeleteAllExcept(path string, filenames []string) error

func (*FS) Exists

func (fs *FS) Exists(path string) (exists bool, err error)

func (*FS) Extract

func (fs *FS) Extract(archivePath string, destinationPath string, pattern string) error

func (*FS) Length

func (fs *FS) Length(path string) (int64, error)

func (*FS) MD5

func (fs *FS) MD5(path string) (md5 string, err error)

func (*FS) Move

func (fs *FS) Move(source string, destination string) error

func (*FS) Read

func (fs *FS) Read(path string) (contents []byte, err error)

func (*FS) Remove

func (fs *FS) Remove(path string) error

func (*FS) TempDir

func (fs *FS) TempDir() (string, error)

func (*FS) Write

func (fs *FS) Write(path string, contents io.Reader, append bool) error

Jump to

Keyboard shortcuts

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