(path, version, hash_value)
| 5 | |
| 6 | |
| 7 | def build_fingerprint(path, version, hash_value): |
| 8 | path_parts = path.split("/") |
| 9 | filename, extension = path_parts[-1].split(".", 1) |
| 10 | file_path = "/".join(path_parts[:-1] + [filename]) |
| 11 | v_str = re.sub(version_clean, "_", str(version)) |
| 12 | |
| 13 | return f"{file_path}.v{v_str}m{hash_value}.{extension}" |
| 14 | |
| 15 | |
| 16 | def check_fingerprint(path): |
searching dependent graphs…