Skip to content

DIRNAME()

Synopsis

Return the directory of a file.

Since

16.21.0, 18.7.0, 19.0.0

Description

Return the directory of a file, given a full file path.

Example: Directory name
same => n,Set(dirname=${DIRNAME(/etc/asterisk/extensions.conf)})
same => n,NoOp(${dirname}) ; outputs /etc/asterisk

Syntax

DIRNAME(filename)
Arguments
  • filename

See Also

Generated Version

This documentation was generated from Asterisk branch 22 using version GIT