Enums
- class b2sdk.v2.MetadataDirectiveMode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Mode of handling metadata when copying a file
- COPY = 401
copy metadata from the source file
- REPLACE = 402
ignore the source file metadata and set it to provided values
- class b2sdk.v2.NewerFileSyncMode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Mode of handling files newer on destination than on source
- SKIP = 101
skip syncing such file
- REPLACE = 102
replace the file on the destination with the (older) file on source
- RAISE_ERROR = 103
raise a non-transient error, failing the sync operation
- class b2sdk.v2.CompareVersionMode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Mode of comparing versions of files to determine what should be synced and what shouldn’t
- MODTIME = 201
use file modification time on source filesystem
- SIZE = 202
compare using file size
- NONE = 203
compare using file name only
- class b2sdk.v2.KeepOrDeleteMode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Mode of dealing with old versions of files on the destination
- DELETE = 301
delete the old version as soon as the new one has been uploaded
- KEEP_BEFORE_DELETE = 302
keep the old versions of the file for a configurable number of days before deleting them, always keeping the newest version
- NO_DELETE = 303
keep old versions of the file, do not delete anything