Go to: Synopsis. Return value. MEL examples.
dirname( string $path )
None
Variable Name | Variable Type | Description |
---|---|---|
$path | string | Path string to strip |
string $path = "/usr/people/gamera/gamera.mel"; string $dirname = dirname( $path ); // Result: /usr/people/gamera // string $ntPath = "C:/aw/godzilla/hello.c"; dirname( $ntPath ); // Result: C:/aw/godzilla //