Bug 336126

Summary: Batch renaming is broken : file just renamed cannot be found
Product: [Applications] digikam Reporter: DrSlony <bugs>
Component: AdvancedRename-fileAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bugs, caulier.gilles
Priority: NOR    
Version: 4.2.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.0
Sentry Crash Report:

Description DrSlony 2014-06-12 12:32:43 UTC
I have four subdirs each with a few images inside. They are most definitely there, confirmed through a console and file manager. In digiKam I have View > Include Album Sub-Tree ticked. I select all of the images in all four subfolders, F2, [dir]{replace:" ","_"}_#[f] and click OK
http://i.imgur.com/Df5f4e7.png
digiKam renames the first image from hdr_1_01.dng to 1_1.dng and fails, complaining that the file it just renamed does not exist: "The file or folder /run/media/drslony/usb_data/photos_purgatory/2014-06-08 soderasens/1/hdr_3_11.dng does not exist"
Of course not, it just renamed it.
http://i.imgur.com/NNCZdLp.png

I reverted the renamed files back to their original names, ran Tools > Maintenance, even restarted digiKam. F2 and the same problem. Further I got was renaming three files.
Renaming does not continue, I have to abort it.

Reproducible: Always
Comment 1 DrSlony 2014-08-06 22:32:23 UTC
Boo.
Comment 2 caulier.gilles 2015-05-17 07:56:57 UTC
Dotan,

Same problem with last 4.10.0 ?

Gilles Caulier
Comment 3 DrSlony 2015-05-17 09:45:39 UTC
I cannot reproduce in 4.10.0.