Path.withExt

Returns path concatenated with provided extension

struct Path
pure nothrow const
withExt
(
in string ext
)

Examples

Example of withExt

import dshould;

Path("foo").withExt(".txt").toString.should.equal("foo.txt");
Path("foo").withExt("txt").toString.should.equal("foo.txt");

Meta