Nodepathdefault.PlatformPath.basenamemethod default.PlatformPath.basename#PlatformPath.basename(path: string,suffix?: string,): stringReturn the last portion of a path. Similar to the Unix basename command. Often used to extract the file name from a fully qualified path. Parameters ##path: stringthe path to evaluate. optional#suffix: stringoptionally, an extension to remove from the result. Return Type #stringThrows #TypeErrorif path is not a string or if ext is given and is not a string.
method default.PlatformPath.basename#PlatformPath.basename(path: string,suffix?: string,): stringReturn the last portion of a path. Similar to the Unix basename command. Often used to extract the file name from a fully qualified path. Parameters ##path: stringthe path to evaluate. optional#suffix: stringoptionally, an extension to remove from the result. Return Type #stringThrows #TypeErrorif path is not a string or if ext is given and is not a string.