Implement FR #3142: Add local recycle bin or trash folder option (#3168)

* This commit implements Feature Request #3142 by introducing a configurable local recycle bin or trash folder mechanism within the OneDrive Client for Linux. This enhancement provides users with a safeguard against unintended data loss during synchronisation operations. This capability is designed to be compatible with the FreeDesktop.org Trash Specification.
This commit is contained in:
abraunegg 2025-04-23 04:28:32 +10:00 committed by GitHub
commit 898f350336
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 402 additions and 72 deletions

6
config
View file

@ -115,6 +115,9 @@
## This configuration option controls whether the client operates in read-only mode.
#read_only_auth_scope = "false"
## This configuration option allows you to specify the 'Recycle Bin' path for the application. This is only used if 'use_recycle_bin' is enabled.
#recycle_bin_path = "/path/to/desired/location/"
## This option removes the local file after a successful upload to OneDrive.
#remove_source_files = "false"
@ -169,6 +172,9 @@
## Only upload changes to OneDrive, do not download from cloud.
#upload_only = "false"
## This configuration option controls the application function to move online deleted files to a 'Recycle Bin' on your system.
#use_recycle_bin = "false"
## Custom User-Agent string for requests to OneDrive. If you change this, you will get throttled by the Microsoft Graph API. Change with caution.
#user_agent = "ISV|abraunegg|OneDrive Client for Linux/vX.Y.Z-A-bcdefghi"