def METHOD_NAME():
    with tempfile.TemporaryDirectory() as tmpdirname:
        temp_dir = Path(tmpdirname)
        file_name = temp_dir / "test.txt"
        file_name.write_text("foo bar")
        hash1 = hash_files_or_dirs([tmpdirname])
        # rename file
        file_name.rename(temp_dir / "test1.txt")
        hash2 = hash_files_or_dirs([tmpdirname])
        assert hash1 != hash2