is_within_tree

lsst.sconsUtils.utils.is_within_tree(path: str, root: str) bool

Check that a given path is within the root directory.

Parameters:
pathstr

Path to check.

rootstr

Root of the directory structure.

Returns:
True if the resolved path is inside the resolved root directory.