Check if current path is inside other path
Note, that this method compares paths converted to absolute paths.
Path to check if current path is inside it.
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);
See Implementation
Check if current path is inside other path
Note, that this method compares paths converted to absolute paths.