Path.isInside

Check if current path is inside other path

struct Path
@safe const
bool
isInside
()

Examples

import dshould;

Path("my", "dir", "42").isInside(Path("my", "dir")).should.be(true);
Path("my", "dir", "42").isInside(Path("oth", "dir")).should.be(false);

Meta