Returns the directory information for the specified path string.

Input

{{ "/alpha/beta.txt" | directory_name }}

Output

/alpha

In this article