CommitInfo

public class CommitInfo : CustomStringConvertible, JSONRepresentable

The CommitInfo struct

  • Path in the user’s Dropbox to save the file.

    Declaration

    Swift

    public let path: String
  • Selects what to do if the file already exists.

    Declaration

    Swift

    public let mode: Files.WriteMode
  • If there’s a conflict, as determined by mode, have the Dropbox server try to autorename the file to avoid conflict.

    Declaration

    Swift

    public let autorename: Bool
  • The value to store as the clientModified timestamp. Dropbox automatically records the time at which the file was written to the Dropbox servers. It can also record an additional timestamp, provided by Dropbox desktop clients, mobile clients, and API apps of when the file was actually created or modified.

    Declaration

    Swift

    public let clientModified: Date?
  • Normally, users are made aware of any file modifications in their Dropbox account via notifications in the client software. If true, this tells the clients that this modification shouldn’t result in a user notification.

    Declaration

    Swift

    public let mute: Bool
  • List of custom properties to add to file.

    Declaration

    Swift

    public let propertyGroups: [FileProperties.PropertyGroup]?
  • Be more strict about how each WriteMode detects conflict. For example, always return a conflict error when mode = update in WriteMode and the given “rev” doesn’t match the existing file’s “rev”, even if the existing file has been deleted. This also forces a conflict even when the target path refers to a file with identical contents.

    Declaration

    Swift

    public let strictConflict: Bool
  • Declaration

    Swift

    public var description: String { get }