'Return a list of folder names.'

def list_folders(self):

    result = []
    for entry in os.listdir(self._path):
        if os.path.isdir(os.path.join(self._path, entry)):
            result.append(entry)
    return result
