torchcell.data.copy_verified
- copy_verified(src: str | Path, dest: str | Path, expected: str) None[source]
Copy
srctodestafter verifyingsrcagainstexpected.The source is hashed before anything is written and the copy goes to a sibling
.partialfile renamed into place, so a refusal leavesdestas it was. The copied bytes are re-verified at build time byverify_raw_files.