fullExtension

The full extension of the path.

fullExtension
(
PathType
)
(
auto ref in PathType p
)
if (
isSomePath!PathType
)

Examples

The full extension of "hello.foo.bar.exe" would be ".foo.bar.exe".

assertEmpty(Path().fullExtension);
assertEmpty(Path("").fullExtension);
assertEmpty(Path("/").fullExtension);
assertEmpty(Path("/hello").fullExtension);
assertEmpty(Path("C:/hello/world").fullExtension);
assertEqual(Path("C:/hello/world.exe").fullExtension, ".exe");
assertEqual(Path("hello/world.foo.bar.exe").fullExtension, ".foo.bar.exe");

Meta