DBFILESWriteModeTag

Objective-C

enum DBFILESWriteModeTag : NSInteger {}

Swift

@frozen enum DBFILESWriteModeTag : Int, @unchecked Sendable

The DBFILESWriteModeTag enum type represents the possible tag states with which the DBFILESWriteMode union can exist.

  • Do not overwrite an existing file if there is a conflict. The autorename strategy is to append a number to the file name. For example, “document.txt” might become “document (2).txt”.

    Declaration

    Objective-C

    DBFILESWriteModeAdd

    Swift

    case add = 0
  • Always overwrite the existing file. The autorename strategy is the same as it is for add.

    Declaration

    Objective-C

    DBFILESWriteModeOverwrite

    Swift

    case overwrite = 1
  • Overwrite if the given “rev” matches the existing file’s “rev”. The supplied value should be the latest known “rev” of the file, for example, from FileMetadata, from when the file was last downloaded by the app. This will cause the file on the Dropbox servers to be overwritten if the given “rev” matches the existing file’s current “rev” on the Dropbox servers. The autorename strategy is to append the string “conflicted copy” to the file name. For example, “document.txt” might become “document (conflicted copy).txt” or “document (Panda’s conflicted copy).txt”.

    Declaration

    Objective-C

    DBFILESWriteModeUpdate

    Swift

    case update = 2