TeamAmaze / TeamAmaze/AmazeFileManager

File not deleted from "Documents" directory, ends up duplicated in Trash

Open
#4,391 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Trash Issue-Bug
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Describe the bug
When deleting a file from the Documents directory, it doesn’t actually get removed. A toast appears saying "Deleting" and then "Done", but the file remains in the original location. At the same time, it also gets added to the Trash bin. If you try to delete it again, it gets added to the Trash again, creating duplicate entries.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to the 'Hamburger' icon
  2. Click on 'Documents'
  3. Try to delete a file
  4. Refresh the screen, notice the file, it doesn't get deleted
  5. Now go to the Trash bin
  6. You will find the file here
  7. Try to delete the same file again, and it will be added to the trash bin AGAIN

Expected behavior

  • The file should be removed from the Documents directory.
  • It should only appear once in the Trash.

Screen Recording

https://github.com/user-attachments/assets/7353d167-58c8-49ed-bdee-f5e22f837121

Smartphone (please complete the following information):

  • Device: [ Motorola e13]
  • OS: [Android 13]
  • Rooted: [No]
  • Version: [v3.10]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Android 13 with AmazeFileManager v3.10 by opening Documents from the Hamburger menu and deleting a file. Trace the delete flow while checking both Documents and Trash; done means the file is removed from Documents and appears only once in Trash.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.