(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)
        target = bltn_open(targetpath, "wb")
        if tarinfo.sparse is not None:
            for offset, size in tarinfo.sparse:
                target.seek(offset)
                copyfileobj(source, target, size)
        else:
            copyfileobj(source, target, tarinfo.size)
        target.seek(tarinfo.size)
        target.truncate()
        target.close()
def makefile ( self , tarinfo , targetpath ) : source = self . fileobj source . seek ( tarinfo . offset_data ) target = bltn_open ( targetpath , "wb" ) if tarinfo . sparse is not None : for offset , size in tarinfo . sparse : target . seek ( offset ) copyfileobj ( source , target , size ) else : copyfileobj ( source , target , tarinfo . size ) target . seek ( tarinfo . size ) target . truncate ( ) target . close ( )