from pathlib import Path


def not_max_depth(path: Path, root: Path, depth: int):
    """Return true if depth of current path is less then max depth specified"""
    return len(path.relative_to(root).parents) <= depth