file_system

package
v0.0.0-...-2918666 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2014 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

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

func NewFileInfo

func NewFileInfo(rootPath string, info os.FileInfo) *FileInfo

func (*FileInfo) IsDir

func (this *FileInfo) IsDir() bool

func (*FileInfo) Name

func (this *FileInfo) Name() string

func (*FileInfo) Path

func (this *FileInfo) Path() string

type FileStore

type FileStore struct {
	RootPath string
}

func NewFileStore

func NewFileStore() *FileStore

func (*FileStore) Checksum

func (this *FileStore) Checksum(path string) (sum [sha1.Size]byte, err error)

func (*FileStore) CreateDir

func (this *FileStore) CreateDir(path string) (err error)

func (*FileStore) Delete

func (this *FileStore) Delete(path string) (err error)

func (*FileStore) Move

func (this *FileStore) Move(path string, newPath string) (err error)

func (*FileStore) ReadDir

func (this *FileStore) ReadDir(path string) (list []backends.FileInfo, err error)

func (*FileStore) ReadDirTree

func (this *FileStore) ReadDirTree(path string, depth int) (list []backends.FileInfo, err error)

func (*FileStore) ReadDirTreeHelper

func (this *FileStore) ReadDirTreeHelper(path string, depth int, tmpList []backends.FileInfo) (list []backends.FileInfo, err error)

func (*FileStore) ReadFile

func (this *FileStore) ReadFile(path string) (reader io.Reader, err error)

func (*FileStore) ReadRoot

func (this *FileStore) ReadRoot() (list []backends.FileInfo, err error)

func (*FileStore) WriteFile

func (this *FileStore) WriteFile(path string, reader io.Reader) (err error)

Jump to

Keyboard shortcuts

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