Skip to content

Can't Delete Files with Same Name to Trash Bin #4619

@Willie169

Description

@Willie169

Describe the bug

Can't delete files to trash bin if there are existing ones with same name and different content due to trashes are all moved to /storage/emulated/0/.AmazeData/TrashBinFiles.

To Reproduce

Steps to reproduce the behavior:

  1. Create a folder named a (or any other string) in /storage/emulated/0/Download (or any other location).
  2. Create a file a.txt (or any other file) in it.
  3. Delete it to trash bin.
  4. Do step 1 again.
  5. Create a file b.txt (or any other file except a.txt) in it.
  6. Delete it to trash bin. The new a folder now can not be deleted.

Expected behavior

The new a folder should also be deleted to trash bin.

A possible solution is to move trashes to /storage/emulated/0/.AmazeData/TrashBinFiles/<timestamp> where <timestamp> is the UNIX time of the time it's deleted.

Smartphone (please complete the following information):

  • Device: Samsung S24+
  • OS: Android 16
  • Rooted: No
  • Version: 3.11.2

Additional context

I also suggest a minor feature to sync /storage/emulated/0/.AmazeData/metadata.json with the actual files in /storage/emulated/0/.AmazeData/TrashBinFiles when opening trash bin so that when a trash is deleted directly from TrashBinFiles, it'll not be shown in trash bin.

Metadata

Metadata

Assignees

Labels

Area-TrashAn issue related to the trash/bin featureIssue-BugRelated unexpected behavior or something worth investigating.Issue-Severe (high)Showstopper issues that require immediate attention

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions