Package duplicity :: Module patchdir :: Class Multivol_Filelike
[hide private]
[frames] | no frames]

Class Multivol_Filelike

source code

Emulate a file like object from multivols

Maintains a buffer about the size of a volume. When it is read() to the end, pull in more volumes as desired.

Instance Methods [hide private]
 
__init__(self, tf, tar_iter, tarinfo_list, index)
Initializer.
source code
 
read(self, length=-1)
Read length bytes from file
source code
 
addtobuffer(self)
Add next chunk to buffer
source code
 
close(self)
If not at end, read remaining data
source code
Method Details [hide private]

__init__(self, tf, tar_iter, tarinfo_list, index)
(Constructor)

source code 
Initializer. tf is TarFile obj, tarinfo is first tarinfo