Bug 257031

Summary: SCAN : rename folder outside of digikam, F5 and it's gone
Product: [Applications] digikam Reporter: Alexandre Racine <alexandreracine>
Component: Database-ScanAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: caulier.gilles, swatilodha27
Priority: NOR    
Version: 1.4.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.0
Sentry Crash Report:

Description Alexandre Racine 2010-11-16 00:32:46 UTC
Version:           1.4.0 (using KDE 4.5.1) 
OS:                Linux

While using digikam in the folder pannel, rename a folder outside of the digikam software, for example with another folder browser or Filezilla, go back in digikam, press F5 to refresh everything and that folder will be gone.

To get it back, you have to close digikam et open again.

Reproducible: Always

Steps to Reproduce:
While using digikam in the folder pannel, rename a folder outside of the digikam software, for example with another folder browser or Filezilla, go back in digikam, press F5 to refresh everything and that folder will be gone.

To get it back, you have to close digikam et open again.

Actual Results:  
See details

Expected Results:  
The folder should refresh (?)
Comment 1 caulier.gilles 2010-11-16 05:04:26 UTC
This task is delegeate to KDirWatch fro KDELibs and digiKam database interface

Gilles Caulier
Comment 2 Andi Clemens 2010-12-19 13:18:30 UTC
I can not confirm this, it is working perfectly fine. 
What I did to test this:

1. create a test folder in digiKam, copy some images in it
2. right-click on the album -> Open in File Manager
3. Rename folder in the file manager
   => digiKam updates the folder
4. Back in digiKam, press F5. 
   => everything is still fine.

Tested with digiKam 1.8.0-svn
Comment 3 Alexandre Racine 2010-12-19 20:17:29 UTC
I did it again with 1.6.0 and the bug still occur.
Comment 4 caulier.gilles 2011-12-15 09:30:53 UTC
Alexandre,

This file still valid using digiKam 2.x serie ?

Gilles Caulier
Comment 5 caulier.gilles 2014-08-07 07:32:13 UTC
We need a fresh feedback using last digiKam 4.2.0 release

Gilles Caulier
Comment 6 swatilodha27 2016-05-31 11:05:51 UTC
This is not reproducible for digikam5.0.0-beta6.

Steps to reproduce:
1. Create a new folder in digiKam & add some images.
2. Right-click on the album -> Open in File Manager
3. Renamed folder in File Manager.
4. Press F5 in digiKam.

Folder still exists and the name is changed.
Comment 7 caulier.gilles 2016-05-31 11:20:06 UTC
Not reproducible here too...

In fact we have dropped KDirWatch in favor of Qt5::QFileSystemWatcher to follow changes from media.

Gilles Caulier