Path.isAbsolute

Check if path is absolute

struct Path
const
bool
isAbsolute
()

Examples

import dshould;

Path().isValid.should.be(false);
Path(".").isAbsolute.should.be(false);
Path("some-path").isAbsolute.should.be(false);

version(Posix) {
    Path("/test/path").isAbsolute.should.be(true);
}

Meta