fs

package
v3.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CopyTaskManager = task.NewTaskManager(3, func(tid *uint64) {
	atomic.AddUint64(tid, 1)
})
View Source
var UploadTaskManager = task.NewTaskManager(3, func(tid *uint64) {
	atomic.AddUint64(tid, 1)
})

Functions

func ClearCache

func ClearCache(path string)

func Copy

func Copy(ctx context.Context, srcObjPath, dstDirPath string) (bool, error)

func Get

func Get(ctx context.Context, path string) (model.Obj, error)

func GetStorage

func GetStorage(path string) (driver.Driver, error)
func Link(ctx context.Context, path string, args model.LinkArgs) (*model.Link, model.Obj, error)

func List

func List(ctx context.Context, path string, refresh ...bool) ([]model.Obj, error)

func MakeDir

func MakeDir(ctx context.Context, path string) error

func Move

func Move(ctx context.Context, srcPath, dstDirPath string) error

func Other

func Other(ctx context.Context, args model.FsOtherArgs) (interface{}, error)

func PutAsTask

func PutAsTask(dstDirPath string, file model.FileStreamer) error

func PutDirectly

func PutDirectly(ctx context.Context, dstDirPath string, file model.FileStreamer) error

func Remove

func Remove(ctx context.Context, path string) error

func Rename

func Rename(ctx context.Context, srcPath, dstName string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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