MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / GetDirectUploadTools

Function GetDirectUploadTools

internal/op/fs.go:771–780  ·  view source on GitHub ↗
(storage driver.Driver)

Source from the content-addressed store, hash-verified

769}
770
771func GetDirectUploadTools(storage driver.Driver) []string {
772 du, ok := storage.(driver.DirectUploader)
773 if !ok {
774 return nil
775 }
776 if storage.Config().CheckStatus && storage.GetStorage().Status != WORK {
777 return nil
778 }
779 return du.GetDirectUploadTools()
780}
781
782func GetDirectUploadInfo(ctx context.Context, tool string, storage driver.Driver, dstDirPath, dstName string, fileSize int64, overwrite bool) (any, error) {
783 du, ok := storage.(driver.DirectUploader)

Callers 1

FsListFunction · 0.92

Calls 3

ConfigMethod · 0.65
GetStorageMethod · 0.65
GetDirectUploadToolsMethod · 0.65

Tested by

no test coverage detected