Read-only small local copy comparison — synthetic lab
Python tested: 3.14.3; standard library only.
Run synthetic tests first: python3 -m unittest -v test_copy
Compare two independent trusted, static, fully downloaded copies:
python3 check_copy.py /path/reference /path/copy
Exit 0 equal, 1 differences, 2 rejected/error. Never modify originals to pass.
Includes hidden files. Rejects symlinks/nonregular/empty trees and known macOS dataless flags.
Limits: 32MiB/file,128MiB total,1000 files,2000 directories.
No writes by checker; tests create disposable temp fixtures only. No network.
Output filenames can be sensitive. Keep locally.
Equality is paths and bytes only: not empty dirs/permissions/timestamps/xattrs, valid content,
application compatibility, backup independence, actual Obsidian restore or cloud safety.
Not safe against malicious concurrent filesystem mutation. No real Vaults tested.
