Restored files can have incorrect names if there were at least two files in the rubbish bin with the same name
Opened this issue · 2 comments
colinkiama commented
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
- Open the files app
- Navigate to your "Downloads" folder
- Use context menu to create a new empty file
- Call it "file.txt"
- Move "file.txt" to the Rubbish Bin
- Navigate to your "Documents" folder
- Repeat steps 3,4 and 5
- Navigate to Rubbish Bin, you'll notice at least 2 files named "file.txt".
- 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
- Restore the file
- 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
jeremypw commented
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 commented
This is rather tricky to fix - my first attempt ran into all sorts of problems.