Skip to main content
Takes a full file path and keeps only the folder part, dropping the filename at the end. Use this when a field holds a complete path but you only need to know which folder the file lives in, for example to group files by their location or to rebuild a path with a different filename.

Fields

This mapper has no settings to configure. It always returns the directory portion of the path you give it.

Sample data

FieldValue
(no settings)
Input:
{ "path": "/uploads/products/scarf-blue.jpg" }
Output:
{ "path": "/uploads/products" }