It’s in ZipFile.getComment()
https://docs.oracle.com/javase/8/docs/api/java/util/zip/ZipFile.html#getComm... https://docs.oracle.com/javase/8/docs/api/java/util/zip/ZipFile.html#getComment--
— Steve M.
On Mar 30, 2022, at 12:17 PM, Christian Grün christian.gruen@gmail.com wrote:
I'm wondering if zip's `setComment` might be useful here.
Interesting hint.
I have discovered the ZipOutputStream.setComment function. There doesn’t seem to be an equivalent ZipInputStream.getComment function, though. Maybe I overlooked something?
On Wed, Mar 30, 2022 at 1:44 PM Christian Grün christian.gruen@gmail.com wrote:
Hi Jonathan,
Currently, it’s not possible to attach comments to backups. I’ll have some more thoughts on your feature request. Maybe we could add an info file in the zipped archive and partially unzip it when listing available backups.
All the best, Christian
On Wed, Mar 30, 2022 at 12:26 AM Jonathan Robie jonathan.robie@gmail.com wrote:
I have been making backups before doing particularly complex things to my treebanks, and I find myself writing down information about what stage of processing a given backup corresponds to.
"after replacing subtrees for missing compounds"
I wish I could associate these strings with backups in BaseX so I can more easily know which one I would restore if something went wrong.
Jonathan