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".

1 assertEmpty(Path().fullExtension);
2 assertEmpty(Path("").fullExtension);
3 assertEmpty(Path("/").fullExtension);
4 assertEmpty(Path("/hello").fullExtension);
5 assertEmpty(Path("C:/hello/world").fullExtension);
6 assertEqual(Path("C:/hello/world.exe").fullExtension, ".exe");
7 assertEqual(Path("hello/world.foo.bar.exe").fullExtension, ".foo.bar.exe");

Meta