FileName.addExt

Add the extension ext to name, regardless of the content of name

struct FileName
extern (D) nothrow static pure
char[]
addExt
(
const(char)[] name
,
const(char)[] ext
)

Parameters

name const(char)[]

Path to append the extension to

ext const(char)[]

Extension to add (should not include '.')

Return Value

Type: char[]

A newly allocated string (free with FileName.free)

Meta