A file name as a string, as defined by the operating system.
Any ending part of the filename to exclude.
The base of the filename. If a suffix is specified, the base of the filename without the suffix.
Gamma> x = basename("/usr/george/lib/misc/myfile.dat");
"myfile.dat"
Gamma> y = basename("misc/myfile.dat", ".dat");
"myfile"
Gamma>