Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@abraunegg
Copy link
Owner

@abraunegg abraunegg commented Mar 22, 2025

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.

Key Features:

  • Configurable Recycle Bin Directory: Users can specify a local directory to serve as a recycle bin using the --recycle-bin option. Files that would otherwise be deleted during sync operations are moved to this directory instead of being permanently removed.

  • Integration with Sync Operations: The recycle bin feature integrates seamlessly with existing operational usage modes. It ensures that file deletions during these operations respect the recycle bin settings.

  • Logging and Transparency: Actions related to the recycle bin, such as moving files and purging old items, are logged to provide users with clear visibility into the client's operations.

* Initial implementation commit of FR #3142 to implement moving files to a configured 'Recycle Bin' rather than a hard delete.
@abraunegg abraunegg added this to the v2.5.6 milestone Mar 22, 2025
@github-actions

This comment has been minimized.

* Add trashinfo
* Add documentation for feature
* Update doc
@github-actions

This comment has been minimized.

* Update code to align to actual GNOME / KDE deletion
* Update documentation, add that this capability is designed to be compatible with the FreeDesktop.org Trash Specification
* Add new option to 'config' file for reference
* Ensure when configuring 'recycleBinFilePath' and 'recycleBinInfoPath' that the basePath has a trailing '/' to ensure these paths are built correctly
* Update documentation
* Update PR to process online deletions in non-reverse order, thus preserving data in folders when moved locally
* Fix issue where 'skip_file' was falsely being triggered when adding|removing 'use_recycle_bin' option
@abraunegg abraunegg linked an issue Apr 22, 2025 that may be closed by this pull request
@abraunegg abraunegg merged commit 898f350 into master Apr 22, 2025
10 checks passed
@abraunegg abraunegg deleted the implement-fr-3142 branch April 22, 2025 19:20
@abraunegg
Copy link
Owner Author

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Repository owner locked and limited conversation to collaborators Apr 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Local Recyclebin or Trash folder option

2 participants