dirname

abstract fun dirname(path: String): String(source)

Return the directory name of a path. Similar to the Unix dirname command.

Parameters

path

the path to evaluate.

Throws

{TypeError} if path is not a string.