FileName.addExt

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

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

Parameters

name
Type: const(char)[]

Path to append the extension to

ext
Type: const(char)[]

Extension to add (should not include '.')

Return Value

Type: char[]

A newly allocated string (free with FileName.free)

Meta