phenotypic.sdk_.paths_fingerprint#

phenotypic.sdk_.paths_fingerprint(paths: Iterable[Path], *, root: Path | None = None) str[source]#

Fingerprint an ordered set of named filesystem entries without writes.

Files include their exact contents, directories include their normalized names, and missing entries are represented explicitly. Sorting by name makes the result independent of caller enumeration order.

Parameters:
  • paths (Iterable[Path]) – Files to include.

  • root (Path | None) – Optional anchor used to normalize names.

Returns:

A deterministic "sha256:<hex>" fingerprint.

Return type:

str