filesystem

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileSystemTypeDropbox  = "dropbox"
	ApiComplexityThreshold = 10_000
)

Variables

View Source
var (
	ErrorInvalidEntryDataFormat = errors.New("invalid entry data format")
	ErrorInvalidEntryType       = errors.New("invalid entry type")
)
View Source
var (
	MFileSystemCached = app_msg.Apply(&MsgFileSystemCached{}).(*MsgFileSystemCached)
)

Functions

func NewEntry

func NewEntry(entry mo_file.Entry) es_filesystem.Entry

func NewError

func NewError(err error) es_filesystem.FileSystemError

func NewPath

func NewPath(namespaceId string, path mo_path.DropboxPath) es_filesystem.Path

func NotFoundError

func NotFoundError() es_filesystem.FileSystemError

func ToDropboxEntry

func ToDropboxEntry(entry es_filesystem.Entry) (mo_file.Entry, error)

Convert ot Dropbox entry model

func ToDropboxPath

func ToDropboxPath(path es_filesystem.Path) (dbxPath mo_path.DropboxPath, err es_filesystem.FileSystemError)

Types

type CacheEntryList

type CacheEntryList struct {
	Entries []string `json:"entries" path:"entries"`
}

type MsgFileSystemCached

type MsgFileSystemCached struct {
	ProgressPreScan app_msg.Message
}

Jump to

Keyboard shortcuts

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