GLib.basename
function basename(file_name: String): String {
// Gjs wrapper for g_basename()
}
Gets the name of the file without any leading directory components. It returns a pointer into the given file name string.
- file_name
the name of the file
- Returns
the name of the file without any leading directory components