Bug 440704 - Deleted and re-created folder does not refresh in Dolphin
Summary: Deleted and re-created folder does not refresh in Dolphin
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.12.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-07 18:38 UTC by David
Modified: 2023-08-08 08:20 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 22.12


Attachments
dolphin_unrefreshed_folder (1.33 MB, image/gif)
2023-07-23 09:45 UTC, David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David 2021-08-07 18:38:43 UTC
SUMMARY
If I delete a folder, leave dolphin open in there, and then re-create it and add files there, the dolphin window that has the previously-deleted folder open will not refresh to show the new contents.

STEPS TO REPRODUCE
1. Create a folder with some files.
2. Open said folder in a dolphin window.
3. Delete the folder and its files from a different application (such as konsole), leaving the Dolphin window open.
4. Re-create the folder and the files.
5. Switch back to the Dolphin window that has the folder open.

OBSERVED RESULT
The folder view is not refreshed unless manually pressing F5.

EXPECTED RESULT
The folder view in Dolphin should refresh, showing the newly created files in the folder which now exists again.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Méven 2023-07-23 08:53:11 UTC
I opened a folder in dolphin.

In the same folder, in konsole, I ran:

mkdir test; touch test/test1 test/stest2
rm -r test
mkdir test; touch test/test1 test/stest2

The folder was refreshed just fine.

Dolphin 22.12.3 KF 5.108

Can you still reproduce this bug ?
If so can you detail a bit more what you did.
Comment 2 David 2023-07-23 09:45:33 UTC
Created attachment 160463 [details]
dolphin_unrefreshed_folder

Still reproducible. Attached a video showing the bug in action.
Comment 3 Bug Janitor Service 2023-08-07 03:44:58 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 David 2023-08-07 15:12:05 UTC
(In reply to Bug Janitor Service from comment #3)
> Dear Bug Submitter,
> 
> This bug has been in NEEDSINFO status with no change for at least
> 15 days. Please provide the requested information as soon as
> possible and set the bug status as REPORTED. Due to regular bug
> tracker maintenance, if the bug is still in NEEDSINFO status with
> no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
> due to lack of needed information.
> 
> For more information about our bug triaging procedures please read the
> wiki located here:
> https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging
> 
> If you have already provided the requested information, please
> mark the bug as REPORTED so that the KDE team knows that the bug is
> ready to be confirmed.
> 
> Thank you for helping us make KDE software even better for everyone!

Required info was provided.
Comment 5 Méven Car 2023-08-08 08:01:12 UTC
(In reply to David from comment #2)
> Created attachment 160463 [details]
> dolphin_unrefreshed_folder
> 
> Still reproducible. Attached a video showing the bug in action.

I see the issue you report now.
The problem is that dolphin view is opened on a folder that has been removed.

The issue is not so much that recreating the folder with a file in it is not reported, it is that dolphin should move to the parent folder as the current folder is deleted. (In you example f1).
Comment 6 Méven Car 2023-08-08 08:20:46 UTC
> KDE Plasma Version: 5.20.5
> KDE Frameworks Version: 5.78.0

I am guessing you are using Debian or slackware or an LTS distro version with on old dolphin version.

This bug was fixed In Dolphin 22.12: 
https://invent.kde.org/system/dolphin/-/merge_requests/469

Hence why I don't reproduce the issue with 
Dolphin Version 23.11.70
KF Version 5.107

Dolphin will move to parent folder displaying a message "f1" is not accessible anymore.