Bug 292120

Summary: batch rename returns 'file does not exist' during rename
Product: [Applications] digikam Reporter: AT <andreas>
Component: AdvancedRename-fileAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, gabor.karsay, lambdae2, linux, ste
Priority: NOR    
Version: 2.5.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.0.0
Sentry Crash Report:

Description AT 2012-01-21 16:15:01 UTC
Version:           2.5.0 (using KDE 4.7.4) 
OS:                Linux

When batch renaming images (scheme: name-##[e]) the batch returns a 'file does not exist' after renaming about 50-80% of images, even though the selected images obviously exist. Depending on the situation I have to re-run the batch once or twice to rename all files.

Reproducible: Sometimes

Steps to Reproduce:
Mark all images in folder and hit f2. Doesn't happen all the time though.

Actual Results:  
Have to run batch rename 2-3 times to rename all images in folder, as returning 'file does not exist'.

Expected Results:  
Rename all marked images in one go.

Seems to me like dk is writing the new name of an image while still working with it, so file name is already new, but dk still looking for old name but not finding it any more. Just my hunch, though.
Comment 1 Michael Holtermann 2012-02-12 19:01:26 UTC
Same here, digikam 2.5, KDE 4.7.4.
Comment 2 stef 2012-04-02 20:53:15 UTC
Similar  thing here, but I'm ending up *always* with non-existing images with the original names in the folder after renaming in batch (only sometimes it hangs with the error "not existing file". 

Same occurs when moving images to another folder, the files are deleted on the disk but show still up in digikam, no way to get rid of them.

Version 2.5.0
Con piattaforma di sviluppo KDE 4.8.1 (4.8.1) arch linux
Comment 3 Gabor Karsay 2013-08-29 16:44:07 UTC
I had this issue while renaming movies that had no thumbnails. I installed ffmpegthumbs which created thumbnails, now also renaming works as expected.

Before that it would rename 1 or 2 movies and then say that the file does not exist. I had to repeat it several times to rename all movies.

My system is Ubuntu 12.04, it didn't work with packaged digikam 2.5.0 nor with self-compiled digikam 2.9.0. After installing ffmpegthumbs it works with self-compiled digikam 2.9.0.
Comment 4 caulier.gilles 2013-12-04 17:55:05 UTC
To all in this file : 

Problem still reproducible with digiKam 3.5.0 ?

Gilles Caulier
Comment 5 stef 2013-12-16 11:05:11 UTC
Not at all, never happens anymore.