You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recycle bin is an optional feature used to temporarily and securely store deleted files. This feature is toggleable and could be recognized by SecureFolderFS through either:
Checking if the recycle bin folder is present and contains items.
Using a feature flag within the configuration file (e.g., "isRecyclebinPresent": true).
File Structure and GUID Naming:
The recycle bin is stored within the vault's content folder: content/recycle_bin.vi. When a file or folder is deleted within a vault, it is moved to the recycle bin instead of permanently removed. The following rules govern how the contents are stored:
root-level items in the recycle bin use a GUID-based naming scheme to ensure multiple deleted items can have the same (original) name,
for each deleted item, a corresponding metadata file is created to store details such as its original name and location.
Depending on whether file name encryption is enabled, the originalPath field may differ
Enabling/Disabling Recycle Bin
The recycle bin feature can be toggled from the app settings, with the following behavior:
Enabling the recycle bin
The folder content/recycle_bin.vi is created if it does not already exist,
User authenticates the change to the configuration file and the flag "isRecyclebinPresent" is set to true,
Existing vault files are unaffected, and subsequent deletions will move items to the recycle bin.
Disabling the recycle bin
Contents already in the recycle bin remain intact,
Deleting a file or folder bypasses the recycle bin and removes the item permanently,
User authenticates the change to the configuration file and the flag "isRecyclebinPresent" is set to false
A visual hint is shown, indicating that the recycle bin is disabled
Accessing contents
Access to the recycle bin contents is managed entirely through the app interface. The app retrieves the list of deleted items by reading the metadata files stored within the recycle bin folder.
The app enumerates all metadata files within the recycle bin and presents the user with the original file names, deletion timestamps, and original locations,
The GUID-based file names and encrypted contents remain hidden from the user,
Restoring an item renames it to its original name, and moves it back to its original location within the vault,
If the destination directory no longer exists, user is prompted to choose a location through folder picker,
The user may also choose to delete the item immediately by choosing the appropriate menu option
App Version
0.7.0.0 (WinUI), Microsoft Windows NT 10.0.22631.0
The text was updated successfully, but these errors were encountered:
Overview
The recycle bin is an optional feature used to temporarily and securely store deleted files. This feature is toggleable and could be recognized by SecureFolderFS through either:
File Structure and GUID Naming:
The recycle bin is stored within the vault's content folder:
content/recycle_bin.vi
. When a file or folder is deleted within a vault, it is moved to the recycle bin instead of permanently removed. The following rules govern how the contents are stored:Example file structure
Example metadata structure
Note
Depending on whether file name encryption is enabled, the
originalPath
field may differEnabling/Disabling Recycle Bin
The recycle bin feature can be toggled from the app settings, with the following behavior:
Enabling the recycle bin
content/recycle_bin.vi
is created if it does not already exist,true
,Disabling the recycle bin
false
Accessing contents
Access to the recycle bin contents is managed entirely through the app interface. The app retrieves the list of deleted items by reading the metadata files stored within the recycle bin folder.
App Version
0.7.0.0 (WinUI), Microsoft Windows NT 10.0.22631.0
The text was updated successfully, but these errors were encountered: