Skip to content

DIRNAME()

Synopsis

Return the directory of a file.

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 20 using version GIT