Calculates a stable SHA-256 hash of all file contents inside a template directory.
Files are read in UTF-8 and hashed in alphabetical order of their relative path to ensure cross-platform stability.
Returns:
The hex-encoded SHA-256 digest of the combined file contents, or ""
Methods
compute_template_hash
compute_template_hash(template_dir: Union) -> str
Calculates a stable SHA-256 hash of all file contents inside a template directory.
Files are read in UTF-8 and hashed in alphabetical order of their relative path to ensure cross-platform stability.
Returns:
The hex-encoded SHA-256 digest of the combined file contents, or ""
| Parameter | Type | Description |
|---|---|---|
| template_dir | Union | Root directory of the template set to hash. |
Generated with Flude
Copyright © 2026