Path.isInside

Check if current path is inside other path

Note, that this method compares paths converted to absolute paths.

struct Path
const
isInside
()

Parameters

other Path

Path to check if current path is inside it.

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);
Path().isInside(Path("oth", "dir")).should.be(false);

Meta