Comment 5 for bug 87448

Revision history for this message
Markus Korn (thekorn) wrote :

The first step to provide any kind of option to clean/organize the bughelper attachment - cache is to rename the path to the attachments.
current implementation:
~/.bughelper/attachments-cache/<librarian.launchpad-ID>/<file>
* The correlation PATH -> BUGNR is impossible

My suggestion is to change the path into:
~/.bughelper/attachments-cache/<bugnr>/<librarian.launchpad-ID>/<file>
* all files attached to a bug are in one folder

The attached patch against .main r117 provides a "on the fly" solution for renaming the paths:
* Whenever a cached file is used by bughelper, this file is moved into the new path, old path is deleted
* New files are saved in the new path

Needs to be reviewed so it can be merged into bughelper.main!

Regards
Markus