fs

package
v0.0.0-...-ad20016 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

type FileSystem struct {
	afero.Fs
}

func NewCWDFileFs

func NewCWDFileFs(subdir string) *FileSystem

func NewFileFs

func NewFileFs(base string) *FileSystem

func NewFs4Tests

func NewFs4Tests() *FileSystem

func (*FileSystem) FileExists

func (fs *FileSystem) FileExists(filePath string) bool

func (*FileSystem) FileName

func (fs *FileSystem) FileName(path string) string

func (*FileSystem) FileNameWithoutExt

func (fs *FileSystem) FileNameWithoutExt(path string) string

func (*FileSystem) GetDirPath

func (fs *FileSystem) GetDirPath(path string) string

func (*FileSystem) ListDir

func (fs *FileSystem) ListDir(path string) ([]os.FileInfo, error)

func (*FileSystem) ReadFile

func (fs *FileSystem) ReadFile(path string) ([]byte, error)

func (*FileSystem) ReadFileMust

func (fs *FileSystem) ReadFileMust(path string) []byte

func (*FileSystem) WriteFile

func (fs *FileSystem) WriteFile(path string, data []byte) error

func (*FileSystem) WriteIfNotExists

func (fs *FileSystem) WriteIfNotExists(path string, data []byte) error

func (*FileSystem) WriteIfNotExistsMust

func (fs *FileSystem) WriteIfNotExistsMust(path string, data []byte)

Jump to

Keyboard shortcuts

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