Go to: Synopsis. Return value. MEL examples.

Synopsis

string basenameEx(string $path)

An extension of basename(), this convenience procedure returns the base name of $path, without the directory or the file extension. See also basename() and fileExtension().

Return value

None

MEL examples

		basenameEx("/usr/people/gamera/gamera.mel");
		// Result: gamera //

		basenameEx("C:/aw/godzilla/hello.c");
		// Result: hello //