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

Function writeModeForIfExists

cmd/put.go:568–573  ·  view source on GitHub ↗
(ifExists string)

Source from the content-addressed store, hash-verified

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

Callers 1

putFileWithResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected