Extracted from Pike v8.0 release 28 as of 2015-09-20.
   

Method MasterObject()->basename()


Method basename

string basename(string x)

Description

Returns the last segment of a path.

See also

dirname(), explode_path()