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

Class TarFile_FromFileobjs

source code

Like a tarfile.TarFile iterator, but read from multiple fileobjs

Instance Methods [hide private]
 
__init__(self, fileobj_iter)
Make new tarinfo iterator
source code
 
__iter__(self) source code
 
set_tarfile(self)
Set tarfile from next file object, or raise StopIteration
source code
 
next(self) source code
 
extractfile(self, tarinfo)
Return data associated with given tarinfo
source code
Method Details [hide private]

__init__(self, fileobj_iter)
(Constructor)

source code 

Make new tarinfo iterator

fileobj_iter should be an iterator of file objects opened for reading. They will be closed at end of reading.