uga-libraries / hub-monitoring

Scripts for summarizing and validating content on the Digital Production Hub, the UGA Libraries' centralized storage for digital objects that are not suitable for our digital preservation system.
Creative Commons Attribution Share Alike 4.0 International
1 stars 0 forks source link

Preservation Log Line Wrapping #59

Closed amhanson9 closed 2 months ago

amhanson9 commented 5 months ago

Discovered when running on real data in Hub that most preservation_log.txt files do not have a return at the end of their last line, so currently the first new line from the validation script is added to the same row as the last line from before.

amhanson9 commented 5 months ago

https://stackoverflow.com/questions/21839803/how-to-append-new-data-onto-a-new-line includes an example of adding a newline at the end of a document if it doesn't exist before appending a new line.