path.stem()
Extracts a component before its last extension separator.
Signature
path.stem(value[, style])
Parameters
Text path plus optional style.
Returns
String.
Behavior
Ignores a leading single dot as an extension separator.
Errors
Bad path or style.
Example
use path
assert(path.stem('report.tar.gz') == 'report.tar')