Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restored files can have incorrect names if there were at least two files in the rubbish bin with the same name #2368

Open
colinkiama opened this issue Jan 10, 2024 · 2 comments
Labels
Status: Confirmed The occurrence and circumstances of the issue have been verified

Comments

@colinkiama
Copy link
Sponsor Member

What Happened?

I created two files with the same name and moved them both to the rubbish bin.

I then restored one of the files from the rubbish bin. They came back with a modified name e.g file.2.txt. The original name of the file was file.txt.

Steps to Reproduce

  1. Open the files app
  2. Navigate to your "Downloads" folder
  3. Use context menu to create a new empty file
  4. Call it "file.txt"
  5. Move "file.txt" to the Rubbish Bin
  6. Navigate to your "Documents" folder
  7. Repeat steps 3,4 and 5
  8. Navigate to Rubbish Bin, you'll notice at least 2 files named "file.txt".
  9. Select the "file.txt" file that displays "file.2.txt" or any name in the format "file.{number}.txt" in the info popup on the bottom of the screen when you select the file
  10. Restore the file
  11. When you to the destination of the restored file (in this case the "Documents" folder), you'll see that the file no longer has the "file.txt" name anymore, it's "file.2.txt" or modified with another number.

Expected Behavior

The restored file should return to it's destination with the name it had when it was deleted "file.txt".

OS Version

7.x (Horus)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

@colinkiama colinkiama changed the title Restored files have can have incorrect names if multiple there are at least two files in the rubbish bin with the same name Restored files have can have incorrect names if there were at least two files in the rubbish bin with the same name Jan 10, 2024
@jeremypw jeremypw added the Status: Confirmed The occurrence and circumstances of the issue have been verified label Jan 11, 2024
@jeremypw
Copy link
Collaborator

Hmm, seems like the actual name in the trash folder is being restored rather than the original name. The properties window and overlaybar also use the actual name (because they are not aware that the folder is a trash folder)

@jeremypw
Copy link
Collaborator

This is rather tricky to fix - my first attempt ran into all sorts of problems.

@colinkiama colinkiama changed the title Restored files have can have incorrect names if there were at least two files in the rubbish bin with the same name Restored files can have incorrect names if there were at least two files in the rubbish bin with the same name Jan 15, 2024
@colinkiama colinkiama changed the title Restored files can have incorrect names if there were at least two files in the rubbish bin with the same name Restored files can have incorrect names if there were at least two files in the rubbish bin with the same name Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Confirmed The occurrence and circumstances of the issue have been verified
Projects
None yet
Development

No branches or pull requests

2 participants