Actions by Category
Path Component Actions
Add two or more levels of parent folder names to file names, joined by a separator of your choice: the Path Components actions of Better Rename.
The Path Components category adds one or more levels of parent folder names to the file name, so that the
location of a file survives when it is moved or merged.
Add path components to beginningandAdd path components to endInsert path components in front of existing text,Insert path components after existing textandInsert path components at position
Use: chooses the parent folder or 2 levels to 6 levels of parent folders. The folder names are joined with the
text in the Add: … to separate path components field, and Prefix: and Suffix: surround the whole block. If not enough parent folders exist decides
whether to add as many as you can or leave the file name untouched.
Example with 2 levels and - as separator: 2026/Paris/IMG_4821.jpg → 2026-Paris IMG_4821.jpg.
To add only the enclosing folder, see the parent folder name actions. The folder levels come from the location of each file on disk, so with subfolders processed one rename covers a whole folder tree.
Example
A photo archive is organised as 2026/Paris/IMG_4821.jpg, 2026/Rome/IMG_4822.jpg, … and the photos are about to
be copied to a single folder on a phone.
- Add the photos to the list, or the archive folder with
Subfolders and their contentsticked - Choose
Add path components to beginningand setUse:to2 levels of parent folders - Enter
-inAdd:…to separate path componentsand a space inSuffix:
IMG_4821.jpg becomes 2026-Paris IMG_4821.jpg and IMG_4822.jpg becomes 2026-Rome IMG_4822.jpg.