michaeltroger / greenpass-android

Green Pass PDF Wallet Android App
https://play.google.com/store/apps/details?id=com.michaeltroger.gruenerpass
GNU General Public License v3.0
75 stars 3 forks source link

[ENHANCEMENT] cleanup: remove file from greenpass when source is deleted #279

Open amarradi opened 3 weeks ago

amarradi commented 3 weeks ago

Is it possible to carry out a kind of "cleaning"? I empty my download folder and delete old files that I no longer need.

However, they can still be accessed in greenpass for the time being. The function should be able to be started manually and check whether the original source is still available, if not then remove from greenpass with or without queries you can decide for yourself. That would be a great feature for me to work more clearly again

michaeltroger commented 4 days ago

Hello, the app doesn't remember where the original source was. Even if it was, the app would need access to the original source, which isn't the case as of now. The app would need to be granted full file system access. Furthermore - this would also only work in certain scenarios - like when you have them in your download folder. But if you imported the document e.g. from some cloud storage, it's likely that the source no longer exists anyways.

It's not planned to implement anything like that. I think a regular PDF reader might be more suitable for this use case, so files don't get imported and you can only open what's still available in your general storage. Keeping it open to see demand for this though!