Symisc Systems

Libcox Command Reference


Star Follow @symisc

Command Syntax

basename path [suffix]


Alias

None


Description

Returns trailing name component of path.


Parameters

path

Target path. On Windows, both slash (/) and backslash (\) are used as directory separator character. In other environments, it is the forward slash(/).

suffix

Optional Parameter: If the name component ends in suffix this will also be cut off.


Return Value

String: The base name of the given path. Use libcox_value_to_string() to extract the processing result.