Write intent
- class b2sdk.v2.WriteIntent[source]
Wrapper for outbound source that defines destination offset.
- __init__(outbound_source, destination_offset=0)[source]
- Parameters
outbound_source (b2sdk.v2.OutboundTransferSource) – data source (remote or local)
destination_offset (int) – point of start in destination file
- classmethod wrap_sources_iterator(outbound_sources_iterator)[source]
Helper that wraps outbound sources iterator with write intents.
Can be used in cases similar to concatenate to automatically compute destination offsets
- Param
iterator[b2sdk.v2.OutboundTransferSource] outbound_sources_iterator: iterator of outbound sources
- Return type
generator[b2sdk.v2.WriteIntent]