Function GenericPath.Segment2.withoutExtension
Returns the file base name, excluding the extension.
auto withoutExtension() const nothrow @nogc @property;
See also
Example
assert(PosixPath("/foo/bar.txt") .head2 .withoutExtension .equal("bar"));
assert(PosixPath("/foo/bar") .head2 .withoutExtension .equal("bar"));
assert(PosixPath("/foo/.bar") .head2 .withoutExtension .equal(".bar"));
assert(PosixPath("/foo/.bar.txt") .head2 .withoutExtension .equal(".bar"));