Author Topic: Renaming when ingesting  (Read 104 times)

Offline Claude Diderich

  • Member
  • **
  • Posts: 50
  • Claude Diderich
    • View Profile
    • Claude Diderich Sports Pictures
Renaming when ingesting
« on: June 15, 2025, 04:38:42 AM »
I am ingesting images which are located in the card folders F:\DCIM\xxxEOSR3\, where xxx is a sequential number starting at 100. As files/photos in different directories may have the same names. I would like to rename the files as follows when ingesting photos from directory F:\DCIM\xxxEOSR3 with image named CD1Ayyyy.CR3 to xxx_CD1Ayyyy.CR3 (or xxxEOSR3_CD1Ayyyy.CR3). I know that I can get the filename part by using the variable {filename}. But how can I get the directory name? Is that even possible? If yes, how would do it, i.e., what would I have to put into the field Rename Ingested photo as?
Claude Diderich, sports photographer, member of AIPS and sportpress.ch

Offline Max Lemesh

  • Full Member
  • ***
  • Posts: 244
    • View Profile
Re: Renaming when ingesting
« Reply #1 on: June 15, 2025, 05:52:58 AM »
{fldn} variable would return the folder number, while {fldr} would return full name of the folder
So going with something like {fldn}-{filenamebase} should do what you are after,
or {fldr}-{filenamebase} if you want full folder name

Offline Claude Diderich

  • Member
  • **
  • Posts: 50
  • Claude Diderich
    • View Profile
    • Claude Diderich Sports Pictures
Re: Renaming when ingesting
« Reply #2 on: June 15, 2025, 07:44:38 AM »
Thanks Max, that is exactly what I was looking for (and definitely overlooked) :-)
Claude Diderich, sports photographer, member of AIPS and sportpress.ch