extensions

All extensions of the path.

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

Examples

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

Meta