(self)
return info
Return the TarInfo's attributes as a dictionary.
Return the TarInfo's attributes as a dictionary.
Return the TarInfo s attributes as a dictionary .
def get_info(self):
        """Return the TarInfo's attributes as a dictionary.
        """
        info = {
            "name":     self.name,
            "mode":     self.mode & 0o7777,
            "uid":      self.uid,
            "gid":      self.gid,
            "size":     self.size,
            "mtime":    self.mtime,
            "chksum":   self.chksum,
            "type":     self.type,
            "linkname": self.linkname,
            "uname":    self.uname,
            "gname":    self.gname,
            "devmajor": self.devmajor,
            "devminor": self.devminor
        }

        if info["type"] == DIRTYPE and not info["name"].endswith("/"):
            info["name"] += "/"

        return info
def get_info ( self ) : info = { "name" : self . name , "mode" : self . mode & 0o7777 , "uid" : self . uid , "gid" : self . gid , "size" : self . size , "mtime" : self . mtime , "chksum" : self . chksum , "type" : self . type , "linkname" : self . linkname , "uname" : self . uname , "gname" : self . gname , "devmajor" : self . devmajor , "devminor" : self . devminor } if info [ "type" ] == DIRTYPE and not info [ "name" ] . endswith ( "/" ) : info [ "name" ] += "/" return info