method default.PlatformPath.basenamePlatformPath.basename(path: string,suffix?: string,): stringDeprecatedReturn the last portion of a path. Similar to the Unix basename command. Often used to extract the file name from a fully qualified path. Parameterspath: stringthe path to evaluate. optionalsuffix: stringoptionally, an extension to remove from the result. Return TypestringThrowsTypeErrorif path is not a string or if ext is given and is not a string.