duplicity.filechunkio module

class duplicity.filechunkio.FileChunkIO(name, mode='r', closefd=True, offset=0, bytes=None, *args, **kwargs)[source]

Bases: _io.FileIO

A class that allows you reading only a chunk of a file.

read(n=-1)[source]

Read and return at most n bytes.

readall()[source]

Read all data from the chunk.

readinto(b)[source]

Same as RawIOBase.readinto().

seek(offset, whence=0)[source]

Move to a new chunk position.

tell()[source]

Current file position.