(dst string, ifExists string, metadata files.IsMetadata)
| 617 | } |
| 618 | |
| 619 | func actionForExistingDestination(dst string, ifExists string, metadata files.IsMetadata) (putDestinationAction, files.IsMetadata, error) { |
| 620 | switch ifExists { |
| 621 | case putIfExistsSkip: |
| 622 | return putDestinationSkip, metadata, nil |
| 623 | case putIfExistsFail: |
| 624 | return putDestinationUpload, nil, pathConflictErrorWithPath(dst, "destination %q already exists", dst) |
| 625 | default: |
| 626 | return putDestinationUpload, nil, nil |
| 627 | } |
| 628 | } |
| 629 | |
| 630 | func getDestinationMetadata(dbx filesClient, dst string) (files.IsMetadata, bool, error) { |
| 631 | meta, err := dbx.GetMetadataContext(currentContext(), files.NewGetMetadataArg(dst)) |
no test coverage detected