Skip to main content
Turns a file name into a nested folder path, so that files are spread across many subfolders instead of piling up in one huge directory. It takes the first few characters of the value, uses them as folder names, and places the original value at the end as the file. This is a common trick for large media libraries: storing thousands of images in a single folder is slow, but spreading them by their leading characters keeps each folder small and quick to browse.

Fields

Sample data

Using the defaults, the first two characters of the file name become two single-character folders, and the original file name is kept at the end.
FieldValue
Depth2
Breadth1
Separator/
Input:
{ "filename": "product-image-1234.jpg" }
Output:
{ "filename": "p/r/product-image-1234.jpg" }
With a Depth of 3 and a Breadth of 2, three folders of two characters each are created from the start of the value.
FieldValue
Depth3
Breadth2
Input:
{ "filename": "ABCDEFGH.txt" }
Output:
{ "filename": "AB/CD/EF/ABCDEFGH.txt" }