fs

package
v0.0.0-...-9b83d1d Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureFolder

func ConfigureFolder(path string, settings map[string]string) (storage.Folder, error)

func NewError

func NewError(err error, format string, args ...interface{}) storage.Error

func OpenFileWithDir

func OpenFileWithDir(filePath string) (*os.File, error)

Types

type Folder

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

Folder represents folder of file system

func NewFolder

func NewFolder(rootPath string, subPath string) *Folder

func (*Folder) DeleteObjects

func (folder *Folder) DeleteObjects(objectRelativePaths []string) error

func (*Folder) EnsureExists

func (folder *Folder) EnsureExists() error

func (*Folder) Exists

func (folder *Folder) Exists(objectRelativePath string) (bool, error)

func (*Folder) GetFilePath

func (folder *Folder) GetFilePath(objectRelativePath string) string

func (*Folder) GetPath

func (folder *Folder) GetPath() string

func (*Folder) GetSubFolder

func (folder *Folder) GetSubFolder(subFolderRelativePath string) storage.Folder

func (*Folder) ListFolder

func (folder *Folder) ListFolder() (objects []storage.Object, subFolders []storage.Folder, err error)

func (*Folder) PutObject

func (folder *Folder) PutObject(name string, content io.Reader) error

func (*Folder) ReadObject

func (folder *Folder) ReadObject(objectRelativePath string) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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