Path.isValid

Check if path is valid.

struct Path
pure nothrow const
isValid
()

Return Value

Type: auto

true if this is valid path.

Examples

import dshould;

Path("").isValid.should.be(false);
Path(".").isValid.should.be(true);
Path("some-path").isValid.should.be(true);
Path("test.txt").isValid.should.be(true);
Path(null).isValid.should.be(false);

Path p;
p.isValid.should.be(false);

Meta