clean temporary files
Closed this issue · 3 comments
bertsky commented
ocrd_browser needs to store preview images in the OS' temporary files location. This can easily sum up to a few gigabytes for large workspaces.
IMHO it would be better to remove these files when closing (even if they could be re-used) to prevent partitions (or RAM disks) from filling up.
bertsky commented
Correcting myself: not preview images, but the cloning of the workspace is the problem here.
I see 2 drawbacks:
- extra storage requirements (esp. when not cleaned up afterwards; but how do you know this can be safely removed at
on_close
time?) - not all workspaces can be fully downloaded successfully (local file references might be wrong, or remote references temporarily unresolvable)
But I see that certain parts of the UI already allow modifying the workspace (like reorder
immediately doing save_mets
). What's the point in having a save_as
then? 😕