def get_path_kind(path):
    """Return a string describing which kind of path we have.

    Args:
        path (Path): A Path object.

    Returns:
        str
    """
    if not path.exists():
        return 'nonexistent'
    elif path.is_dir():
        return 'dir'
    elif path.is_file():
        return 'file'
    elif path.is_symlink():
        return 'symlink'
    else:
        return 'other'