(ifExists string)
| 566 | } |
| 567 | |
| 568 | func writeModeForIfExists(ifExists string) string { |
| 569 | if ifExists == putIfExistsOverwrite { |
| 570 | return files.WriteModeOverwrite |
| 571 | } |
| 572 | return files.WriteModeAdd |
| 573 | } |
| 574 | |
| 575 | func checkPutStdinDestination(dbx filesClient, dst string, ifExists string) (putDestinationAction, files.IsMetadata, error) { |
| 576 | ifExists, err := normalizePutIfExists(ifExists) |