def is_subpath(spath, lpath):
    """
    check the short path is a subpath of long path

    :param spath str: short path
    :param lpath str: long path
    """

    if lpath.startswith(spath):
        slen, llen = len(spath), len(lpath)
        return True if slen == llen else lpath[slen] == '/'
    return False