verify_sidecar
Verifies a file's integrity by comparing its hash against a sidecar checksum file (e.g., .sha256, .md5) located in the same directory. Returns the algorithm, expected hash, computed hash, and match result.
Instructions
Verify a file's integrity against a sidecar checksum file. Looks for a sidecar file in the same directory as the target file by appending a hash extension (e.g. for 'movie.mkv' it checks 'movie.mkv.sha256', 'movie.mkv.md5', 'movie.mkv.sfv', etc.). Supported sidecar formats: .sha512, .sha256, .sha1, .md5 (and their *sum variants), and .sfv (CRC32). Returns the algorithm used, the expected hash from the sidecar, the freshly computed hash, and whether they match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path to the file to verify (the data file, not the sidecar). |