expandTilde

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

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

Examples

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

Meta