Path.isValid

Check if path is valid.

struct Path
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