Filename and Directory Tokens
On this page
This is a complete reference for the tokens used in the download directory and filename settings. For how to use them, see Using Filename and Directory Tokens.
Shooting Date and Time Tokens#
| Token | Description | Example |
|---|---|---|
{a} |
Abbreviated weekday name | Fri |
{A} |
Full weekday name | Friday |
{b} |
Abbreviated month name | Jun |
{B} |
Full month name | June |
{d} |
Date YYMMDD | 040611 for June 11, 2004 |
{D} |
Day of month (01–31) | |
{H} |
Hour (00–23) | |
{I} |
Hour (01–12) | |
{j} |
Day of year (001–366) | |
{m} |
Month (01–12) | 06 for June |
{M} |
Minutes (00–59) | |
{p} |
am/pm indicator (upper case) | PM |
{plc} |
am/pm indicator (lower case) | pm |
{P} |
Quarter | Q{P} gives Q2 for June |
{s} |
Subsecond timing (Nikon DSLRs and recent Canon DSLRs via card reader) | 56 |
{S} |
Seconds (00–59) | |
{t} |
Time HHMMSS | |
{epoch} |
Seconds since 1 Jan 1970 (10 digits) | 1159805283 |
{epoch36} |
Seconds since 1 Jan 1970 in base 36 (6 chars) | J6INHF |
{W} |
Week number (00–53); week 1 = first week containing a Monday | 00 for Tuesday 1 Jan 2013 |
{WI} |
ISO week number (00–53); week 1 = first week containing a Thursday | 01 for Tuesday 1 Jan 2013 |
{IWD} |
Full ISO week date (year, week, day) | 2013-W01-2 for Tuesday 1 Jan 2013 |
{y} |
Year without century | 04 for 2004 |
{Y} |
Year with century | 2004 |
{Z} |
Time zone offset from UTC | +0100 for GMT during DST |
{1} |
Year 'now' (download date) YYYY | 2004 |
{2} |
Month 'now' (01–12) | |
{3} |
Day 'now' (01–31) | |
{4} |
Year 'now' YY | 04 |
{5} |
Year less 3 hours (useful for events shooting past midnight) | |
{6} |
Month less 3 hours | |
{7} |
Day less 3 hours |
The {5}, {6} and {7} tokens make images shot before 3am use the previous day's date, which is useful for events that run past midnight.
Shooting Data Tokens#
| Token | Description | Example |
|---|---|---|
{c} |
Camera serial number (Canon EOS and recent Nikon DSLRs) | |
{C} |
Canon EOS-1D/1DS style serial number | |
{e} |
File extension (without dot) | JPG |
{E} |
File type: JPG for JPEG extensions, RAW for all others | |
{E1} |
Empty for JPEG, RAW for others | |
{E2} |
JPG for JPEG, empty for others | |
{E3} |
JPG for JPEG, MOV for others | |
{E4} |
Empty for JPEG, MOV for others | |
{E5} |
MOV for movie/THM files, empty for others | |
{E6} |
RAW for raw files, empty for others | |
{E7} |
"movies" for movie/THM files, empty for others | |
{E8} |
Empty for movie/THM files, "pictures" for others | |
{E9} |
"videos" for movie/THM files, empty for others | |
{f} |
First 3 characters of image name | IMG for IMG_4567.JPG |
{file[n-m]} |
Characters n to m of the filename | {file[2-4]} from IMG_4567.JPG gives MG_ |
{file[n]} |
Character n of the filename | |
{file[n-]} |
Filename from character n | {file[3-]} gives G_4567 |
{file[-n]} |
Last n characters of the filename | {file[-6]} gives G_4567 |
{i} |
ISO value | |
{k} |
ISO value; returns "Auto" for ISO 0 | |
{K1} |
Lens focal length in mm | 28 |
{K2} |
Aperture | 5.6 |
{K3} |
Shutter speed | 125 for 1/125 sec |
{o} |
Original image name (in filename), or source folder name (in directory) | IMG_4567 or 123CANON |
{O} |
Owner string (Canon cameras only) | |
{q} |
Image folder number | 123 for \DCIM\123CANON |
{Q} |
Image folder name | 123CANON |
{Q1} |
Source folder path without drive letter | DCIM\456NIKON |
{Q3} |
Drive letter of source | |
{readOnly} |
read_only if the file is read-only, else empty |
|
{readOnly1} |
high if read-only, else empty |
|
{readOnly2} |
high if read-only, low otherwise |
|
{r} |
Image number | 4567 for IMG_4567.JPG |
{r1} |
Last digit of image number | 7 |
{r2} |
Last 2 digits | 67 |
{r3} |
Last 3 digits | 567 |
{r4} |
Last 4 digits | 4567 |
{r8} |
Shutter activation count (Canon EOS-1D series and Nikon DSLRs from D70) | 123 |
{r85} |
Shutter count, 5-digit padded | 00123 |
{r86} |
Shutter count, 6-digit padded | 000123 |
{T} |
Camera model (starting from first word containing digits) | 30D for Canon EOS 30D |
{T1} |
Same as {T}, treating - as spaces |
1DS for Canon EOS-1DS |
{T2} |
Full camera model name | Canon EOS 5D |
{T8} |
Value from camera name mapping (defaults to {T1}) |
|
{T9} |
Second value from camera name mapping (defaults to {T1}) |
|
{vol} |
Disk volume name (card readers and disk drives only) | EOS_DIGITAL |
Sequence and Uniqueness Tokens#
| Token | Description |
|---|---|
{n1}–{n5} |
Download sequence number (this session), 1–4 digit |
{N1}–{N4} |
Date-based download sequence number (resets each day), 1–4 digit |
{seq#} |
Continuous sequence number (persists between sessions) |
{seq#2}–{seq#6} |
Continuous sequence number, 2–6 digit padded |
{R} |
Downloads today count |
{l} |
Uniqueness number (empty if unique, else 1, 2…) |
{l2}–{l4} |
2–4 digit uniqueness number |
{L} |
Uniqueness number (always at least 1) |
{L2}–{L4} |
2–4 digit version of {L} |
{la} |
Uniqueness using letters (1 = a, 2 = b, etc.) |
{La} |
Always-numbered letter uniqueness |
{epoch} |
Seconds since 1 Jan 1970 |
{epoch36} |
Epoch in base 36 (6 chars) |
The {n} and {N} tokens may produce duplicate filenames if you download several memory cards on the same day. Use {seq#} for multi-card sessions.
See Sequence Numbers and Unique Numbering for examples.
Other Tokens#
| Token | Description |
|---|---|
{J} |
Job code |
{u} |
"My Pictures" folder |
{U} |
"My Documents" folder |
Tokens for Modifying Strings#
| Token | Description | Example |
|---|---|---|
{left,n,str} |
First n characters of str | {left,4,{T2}} on a Nikon Z7 → Niko |
{mid,n,m,str} |
m characters starting at position n | {mid,1,4,{T2}} → ikon |
{right,n,str} |
Last n characters of str | {right,2,{T2}} on a Nikon Z7 → Z7 |
{field,n,str} |
nth field, split on space, ., -, ,, \ or _ |
{field,1,IMG_0001.JPG} → IMG |
{field2,n,ch,str} |
nth field using character ch as the separator | {field2,2,-,one-two-three} → two |
{first,str} |
First word of str | {first,{T2}} on a Nikon Z7 → Nikon |
{last,str} |
Last word of str | {last,{T2}} on a Nikon Z7 → Z7 |
{default,str1,str2} |
str1, or str2 if str1 is empty | {default,{J},none} → job code or "none" |
{if,test,str1,str2} |
str1 if test is not empty, else str2 | {if,{E1},JPEG file,not a JPEG} |
{compare,str1,str2} |
1 if the strings match, else empty | |
{contains,str1,str2} |
1 if str1 contains str2, else empty | |
{upper,str} |
Upper case | {upper,{B}} → JUNE |
{lower,str} |
Lower case | {lower,{B}} → june |
{capitalize,str} |
Lower case with a capital first letter | {capitalize,john} → John |
Country Code Tokens#
| Token | Description | Example |
|---|---|---|
{cc1,code} |
Country name from an ISO-3166 alpha-2 or alpha-3 code | {cc1,USA} → United States |
{cc2,alpha3} |
ISO-3166 alpha-2 code from alpha-3 | {cc2,DEU} → DE |
{cc3,alpha2} |
ISO-3166 alpha-3 code from alpha-2 | {cc3,GB} → GBR |
Example with a job code in the format 1234GB Jones:
{left,4,{J}}→ job number1234{mid,4,2,{J}}→ country codeGB{cc1,{mid,4,2,{J}}}→United Kingdom{cc3,{mid,4,2,{J}}}→GBR{mid,7,100,{J}}→ client nameJones
To default to GB when GPS/Geonames data is unavailable: {default,{geonames_countryCode},GB}
Was this page helpful?
Thanks, that helps us improve the guides.