standard.C.io.dirname

dirname is available since version 1.0.

Prototype:

string dirname(number directory_entry);

Parameters

directory_entry
a valid directory entry as returned by readdir

Description:

Gets the name of a directory returned by a call to readdir.

Return value:

Returns a string containing the directory name returned by a call to readdir.