from pathlib import Path


def is_subpath(parent_path: str, child_path: str):
    """Return True if `child_path is a sub-path of `parent_path`

    :param parent_path:
    :param child_path:
    :return:
    """
    return Path(parent_path) in Path(child_path).parents