defaultExtension

Just like std.path.defaultExtension, but operates on Path and optionally Ext.

  1. Path!C defaultExtension(Path!C path, C2[] ext)
    @trusted pure
    defaultExtension
    (
    C
    C2
    )
    (,
    in C2[] ext
    )
    if (
    is(C == Unqual!C2)
    )
  2. Path!C defaultExtension(Path!C path, Ext!C ext)
  3. immutable(Unqual!C1)[] defaultExtension(C1[] path, C2[] ext)

Meta