TeamAmaze / TeamAmaze/AmazeFileManager
Can't Delete Files with Same Name to Trash Bin
@VishnuSanal is already working on this.
Since May 10, 2026.
- Dominant language
- Kotlin
- Stars
- 6.4k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
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:
- Create a folder named
a(or any other string) in/storage/emulated/0/Download(or any other location). - Create a file
a.txt(or any other file) in it. - Delete it to trash bin.
- Do step 1 again.
- Create a file
b.txt(or any other file excepta.txt) in it. - Delete it to trash bin. The new
afolder 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.