update argument is not resulting updating the media information
laszlojanosek opened this issue · 2 comments
Not sure if this is intentional, or I miss a parameter. If neither of these then I think it is a feature request for your consideration.
Update argument is updating the content of the folder but the media information (size, free space, date, etc.) remains as it was captured during the original index.
Example:
- Index a folder to a catalogue file.
catcli index --meta="whatever" --catalog=whatever.catalog 191 /media/user/191
- list content of the media within the catalog shows ( is 191)
catcli ls --catalog=whatever.catalog 191
storage: 191 (whatever)
nbfiles:1 ,totsize:204.8G ,free:33.2% ,du:91.1G/274.0G ,date: 2021-08-26 15:52:46
- Changes in the folder
- Update the catalog
catcli update --catalog=whatever.catalog 191 /media/user/191
- "catcli ls --catalog=whatever.catalog 191" still shows the size information captured during the original index (as in example step 2.)
As a workaround, I remove the from the catalog and index it again. It would be nice if the media information would be updated as well as the date. I use this parameter in later scripts to ease finding available storage space in backup media.
BTW, I still love this piece of software. ;-)
Thanks for submitting this.
You are right, update
should definitely update the media information. I'll look into it!