def path_is_subpath(path, prefix):
    'Return True if path is a subpath of prefix\n\n    It will return False if path == prefix.\n\n    Parameters\n    ----------\n    path: str\n    prefix: str\n    '
    (path, prefix) = _get_normalized_paths(path, prefix)
    return ((len(prefix) < len(path)) and path.startswith(prefix))
Return True if path is a subpath of prefix

It will return False if path == prefix.

Parameters
----------
path: str
prefix: str
def path_is_subpath(path, prefix):
    'Return True if path is a subpath of prefix\n\n    It will return False if path == prefix.\n\n    Parameters\n    ----------\n    path: str\n    prefix: str\n    '
    (path, prefix) = _get_normalized_paths(path, prefix)
    return ((len(prefix) < len(path)) and path.startswith(prefix))