def is_hardlink(filepath: Path) -> bool:
    """
    Check if a file is a hardlink by checking the number of links to/from it.

    Args:
        filepath (Path): path to the file.

    """
    stat_info = os.stat(filepath)
    return stat_info.st_nlink > 1

    Check if a file is a hardlink by checking the number of links to/from it.

    Args:
        filepath (Path): path to the file.

    
llama-index-integrations/readers/llama-index-readers-obsidian/llama_index/readers/obsidian/base.py