(self, tarinfo, targetpath)
Make a file called targetpath.
Make a file called targetpath.
Make a file called targetpath .
def makefile(self, tarinfo, targetpath):
        """Make a file called targetpath.
        """
        source = self.fileobj
        source.seek(tarinfo.offset_data)
        bufsize = self.copybufsize
        with bltn_open(targetpath, "wb") as target:
            if tarinfo.sparse is not None:
                for offset, size in tarinfo.sparse:
                    target.seek(offset)
                    copyfileobj(source, target, size, ReadError, bufsize)
                target.seek(tarinfo.size)
                target.truncate()
            else:
                copyfileobj(source, target, tarinfo.size, ReadError, bufsize)
def makefile ( self , tarinfo , targetpath ) : source = self . fileobj source . seek ( tarinfo . offset_data ) bufsize = self . copybufsize with bltn_open ( targetpath , "wb" ) as target : if tarinfo . sparse is not None : for offset , size in tarinfo . sparse : target . seek ( offset ) copyfileobj ( source , target , size , ReadError , bufsize ) target . seek ( tarinfo . size ) target . truncate ( ) else : copyfileobj ( source , target , tarinfo . size , ReadError , bufsize )