code: def basename_without_extension(self):
          
          ret = self.basename.rsplit('.', 1)[0]
          if ret.endswith('.tar'):
              ret = ret[0:len(ret)-4]
          return ret
docs: Get the ``os.path.basename`` of the local file, if any, with extension removed.