file_dirname

The file_dirname filter parses the file path and returns just the dirname value.

{{ '/path/to/my/file.pdf'|file_dirname }}

< Back to the list of filters