def _parse_g_dir(repo, gdirpath):
    """parses a repo directory two-levels deep"""
    for f in repo.get_contents(gdirpath):
        if f.type == 'dir':
            for sf in repo.get_contents(f.path):
                yield sf
        else:
            yield f
