Renaming issues

Hi there
Is there anyone here who can tell what command I should use to rename all files in a folder with sequence number
Useing lua script rename

As an example
2026-03-20 stormy day at the beach is the folder

2026-03-20 stormy day at the beach 01.Nef

2026-03-20 stormy day at the beach 02.Nef

I can get the name to work but the file type is missing
What am i doing wrong

Cheers
Henrik

You don’t say what rename pattern you are using, but is it something like this, where $(FILE.EXTENSION) will be replaced by the existing file extension:

$(FILE.FOLDER)/$(FILE.NAME)_$(SEQUENCE).$(FILE.EXTENSION)

Edit: all the available variables are listed here: darktable user manual - variables

2 Likes