Path.this

Constructor that allows to build path from segments * Params: * segments = array of segments to build path from

  1. this(string path)
  2. this(string[] segments)
    struct Path
    this
    (
    in string[] segments...
    )

Examples

import dshould;

version(Posix) {
    Path("foo", "moo", "boo").toString.should.equal("foo/moo/boo");
    Path("/foo/moo", "boo").toString.should.equal("/foo/moo/boo");
}

Meta