SyncPolicy

data class SyncPolicy(val markerPath: String, val guardEmptyOverExisting: Boolean = true, val shrinkGuard: ShrinkGuard? = ShrinkGuard(), val mimeTypeOf: (path: String) -> String = ::defaultMimeType)(source)

Constructors

Link copied to clipboard
constructor(markerPath: String, guardEmptyOverExisting: Boolean = true, shrinkGuard: ShrinkGuard? = ShrinkGuard(), mimeTypeOf: (path: String) -> String = ::defaultMimeType)

Properties

Link copied to clipboard

An empty snapshot on a device that never synced must not overwrite an existing remote set.

Link copied to clipboard

Uploaded LAST, only after everything else succeeded; its presence means "the remote set is complete".

Link copied to clipboard
val mimeTypeOf: (path: String) -> String
Link copied to clipboard

Refuses runs that would delete most of the remote set; null disables it. See ShrinkGuard.