feat(apple): add a Free up space action to reclaim leaked storage

Delete all transfers only clears core records, and the blob-store cache is
reclaimed by the core's own timer. Neither touches the app's temporary directory
(leftover picker/staging copies — hundreds of MB on macOS) or the stray .Trash
folders that accumulate in app-owned directories and can't be removed via
Files/Finder. Add a non-destructive Free up space button that empties the temp
directory and removes .Trash folders under the core data dir (and, on iOS, the
fixed Documents receive folder), reporting the bytes reclaimed. Guarded against
running while a transfer is in flight; never touches received files, the core
database, or user-chosen macOS receive folders.
This commit is contained in:
2026-07-24 13:46:27 +02:00
parent 20597e6e88
commit 677c3ce47f
12 changed files with 194 additions and 0 deletions

View File

@@ -203,6 +203,10 @@
<string name="status_receiving">Wird empfangen</string>
<string name="status_stopped">Beendet</string>
<string name="storage_calculating">Wird berechnet…</string>
<string name="storage_cleaning">Wird bereinigt…</string>
<string name="storage_cleanup_busy">Beende aktive Übertragungen, bevor du Speicher freigibst</string>
<string name="storage_cleanup_freed">%1$s freigegeben</string>
<string name="storage_free_up_space">Speicher freigeben</string>
<string name="storage_delete_transfers">Alle Übertragungen löschen</string>
<string name="storage_delete_transfers_description">Dadurch werden alle Datensätze gesendeter und empfangener Übertragungen aus Ihrem Verlauf gelöscht. Ihre empfangenen Dateien werden nicht gelöscht. Nicht mehr benötigte zwischengespeicherte freigegebene Inhalte werden automatisch bereinigt; dies kann etwas dauern. Dies kann nicht rückgängig gemacht werden.</string>
<string name="storage_app_data">App-Daten</string>