expandTilde

Expand tilde in a. TODO: remove @trusted when scope inference is works.

  1. FilePath expandTilde(FilePath a)
  2. DirPath expandTilde(DirPath a)
    @safe nothrow
    @trusted => typeof(return)(std_expandTilde(a.path.str))
    expandTilde
    (
    scope return DirPath a
    )

Examples

assert(FilePath("~").expandTilde);
assert(DirPath("~").expandTilde);

Meta