Using the HMAC to hash files already implemented, save the fingerprints of each file and introduce checks on startup. Ensure that whenever the client closes the application, the updated fingerprint is saved.
Upon any change, save the new fingerprint before confirming that item has been saved.