According to this article one can rename the photos while importing them to digiKam.
I’ve looked for File Renaming Options as described in this article but I cannot find it anywhere. I’ve mount my CF card to see if it will appear after the Import function activated but nowhere to be found.
Just made a bash script file for converting whatever imported into the given directory by cli first arg to dated directories and then recursivelly naming those files according to camera’s model name and dateTime when the shot was taken. Here it is:
#!/bin/bash
FILE=""
DIR="$1"
if [ -d "$DIR" ]
then
if [ "$(ls -A $DIR)" ]
then
cd $DIR
exiftool '-Directory<DateTimeOriginal' -d %m%Y .
exiftool '-filename<${model;}_${createdate#;DateFmt("%d-%b-%y_%H%M%S")}_$filenumber.%e' . -r
else
echo "$DIR is Empty"
fi
else
echo "Directory $DIR not found."
fi
*EDIT: added the _$filenumber parameter for filenaming since if a/or more picture(s) was/were taken in the same second then renaming for the second/third/… file could not occur.