'Return number of components and average size per component.'

def GetComponentInformation(self):

    loc = self.GetLocation()
    if ((not os.path.exists(loc)) or (not os.path.isdir(loc))):
        return (0, 0)
    (size, files) = common.DatabaseDirectorySize(loc, self.db.FileExtension())
    if files:
        return (files, int((float(size) / float(files))))
    return (0, 0)
