MCPcopy Create free account
hub / github.com/dropbox/dbxcli / downloadFileWithResult

Function downloadFileWithResult

cmd/get.go:377–383  ·  view source on GitHub ↗
(dbx filesClient, src string, dst string, opts getOptions)

Source from the content-addressed store, hash-verified

375}
376
377func downloadFileWithResult(dbx filesClient, src string, dst string, opts getOptions) (getResult, error) {
378 metadata, err := downloadFileWithMetadata(dbx, src, dst, getErrorOutput(opts))
379 if err != nil {
380 return getResult{}, err
381 }
382 return newGetResult(getStatusDownloaded, getKindFile, src, dst, metadata)
383}
384
385func downloadFileWithMetadata(dbx filesClient, src string, dst string, errOut io.Writer) (*files.FileMetadata, error) {
386 arg := files.NewDownloadArg(src)

Callers 2

getFunction · 0.85
getRecursiveInternalFunction · 0.85

Calls 3

downloadFileWithMetadataFunction · 0.85
getErrorOutputFunction · 0.85
newGetResultFunction · 0.85

Tested by

no test coverage detected