def isChildDir(parent:str, cand:str) -> bool:
    """ Returns true if parent is an ancestor of cand. """
    if cand.startswith(parent) and len(cand) > len(parent):
        return True
    return False