':returns: total size of database.'

def __get_size(self):

    if (not self.path):
        return 0
    return sum((os.path.getsize(os.path.join(dirpath, filename)) for (dirpath, dirnames, filenames) in os.walk(self.path) for filename in filenames))
