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