Bug 368450

Summary: Krusader does not show the new file in a directory that is a symbolic link until is not refresh directory
Product: [Applications] krusader Reporter: kdebug
Component: generalAssignee: Alex Bikadorov <alex.bikadorov>
Status: RESOLVED FIXED    
Severity: normal CC: alex.bikadorov
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description kdebug 2016-09-08 11:29:33 UTC
mkdir /home/user/{test1,test2}
ln -s /home/user/test1/ /home/user/test2

If you open the /home/user/test2/test1 in krusader, and then create a new file using an external application, krusader not show the file until you refresh the directory (get out and go back to the directory)

If you open the /home/user/test1 in krusader, and then create a new file using an external application, krusader show the file immediately without refreshing directory.

Dolphin in both case works as expected (show the file immediately without refreshing directory.
)

Reproducible: Always

Steps to Reproduce:
In konsole
1. mkdir /home/user/{test1,test2}
2. ln -s /home/user/test1/ /home/user/test2
In krusader
3. Open /home/user/test2/test1
In konsole
4. touch /home/user/test2/test1/file1


Actual Results:  
krusader not show the file until you refresh the directory (get out and go back to the directory)

Expected Results:  
krusader show the file immediately without refreshing directory.

kde-misc/krusader:5-git-58a1fd6b7abbb32bd8470b1c821c23b9b035d4c0
kde-plasma/plasma-meta-5.6.5
kde-apps/dolphin-16.04.3
KDE Frameworks 5.23.0
Qt 5.6.1 (built against 5.6.1)
Comment 1 Alex Bikadorov 2016-09-08 15:27:48 UTC
I'm currently doing a rework of the filesystem backend code of Krusader, see https://phabricator.kde.org/T3419 . This bug is already fixed by my work. I hope to finish everything next week and will push this into another branch for testing.
Comment 2 Alex Bikadorov 2016-10-12 15:09:34 UTC
I was wrong, it wasn't fixed - but it is now.
The patch is included in the vfs_rework branch, but it will take some time until it will be merged with master.
Comment 3 Alex Bikadorov 2016-10-17 14:47:10 UTC
Git commit ee545ae7e8a9ef7a6c0c9c1bfe330585c103373d by Alexander Bikadorov.
Committed on 17/10/2016 at 14:28.
Pushed by abikadorov into branch 'vfs_rework'.

Fixed watching directories which are symbolic links.

M  +13   -6    krusader/VFS/default_vfs.cpp
M  +2    -0    krusader/VFS/default_vfs.h

http://commits.kde.org/krusader/ee545ae7e8a9ef7a6c0c9c1bfe330585c103373d