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

Function downloadFileWithMetadata

cmd/get.go:385–395  ·  view source on GitHub ↗
(dbx filesClient, src string, dst string, errOut io.Writer)

Source from the content-addressed store, hash-verified

383}
384
385func downloadFileWithMetadata(dbx filesClient, src string, dst string, errOut io.Writer) (*files.FileMetadata, error) {
386 arg := files.NewDownloadArg(src)
387 var metadata *files.FileMetadata
388
389 err := retryWithBackoff(func() error {
390 var err error
391 metadata, err = downloadFileOnce(dbx, arg, dst, errOut)
392 return err
393 })
394 return metadata, err
395}
396
397func createDownloadTemp(dst string) (*os.File, string, error) {
398 dir := filepath.Dir(dst)

Callers 2

downloadFileFunction · 0.85
downloadFileWithResultFunction · 0.85

Calls 2

retryWithBackoffFunction · 0.85
downloadFileOnceFunction · 0.85

Tested by

no test coverage detected