Build a local file manifest for creative project handoffs in Python
A creative project can produce several small files that look almost identical: a source image, exports for different chat placements, a comparison grid, an outfit concept and a song draft. Before handing them off, it helps to know exactly which files you are sending and whether a file changed after review. Disclosure: I build Emote Resizer, Free Image Merger, TryOnSwap and Songifted, which are…
This brief outlines a Python script for creating a local file manifest for creative project handoffs. The manifest lists each file's relative path, byte length, and SHA-256 digest, enabling users to detect changes in file content. However, it's important to note that a manifest does not verify the correctness, licensing, safety, accessibility, or approval of file content.
The script, named manifest.py, uses only the Python standard library and reads files without altering them. It skips symbolic links, reads files in chunks, and outputs sorted relative paths, byte sizes, and hashes in JSON format. Users should only include relevant project files in the designated folder and exclude any private or unapproved images.
Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.