Path.isValid

Check if path is valid.

struct Path
@safe pure nothrow const
bool
isValid
()

Return Value

Type: bool

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);

Meta