acep-uaf / camio-meter-streams

0 stars 0 forks source link

Checksum and Zip #106

Closed aloralove closed 3 months ago

aloralove commented 3 months ago

Fixed a mistake when zipping event dirs. Had the path set up wrong. only files for each event are being zipped together instead of multiple events.

aloralove commented 3 months ago

The checksum is now back in the metadata script. It generates the checksum and appends it to a checksum.md5 file in the event dir and adds it to the metadata for each file (the same checksum in two locations). I had the checksum for the event dir earlier in this PR, and now it's for each file, just like before.

The event directory gets zipped after validating the completed download and generating the checksum and metadata. Initially, the event directory was being zipped along with the entire path. The updated change has it being zipped at just the event directory, ex: /path/to/extracted-zip/10001.zip. Much cleaner. This can be zipped to a desired location. However, from what I understand, unzipping will occur elsewhere outside of the ot-server.

The terminal is now cleared of most the added echos I had. I left two for a visual of the validated and zipped event download.

aloralove commented 3 months ago

I merged the updated new Main into this branch, resolved all merge conflicts, and tested the download; everything seems to be working fine and as wanted.