def _path_within_scope(scope, fullpath):
    if fullpath is not None:
        fullpath = fullpath.lstrip('/')
        if scope == '/':
            return _normalize_path(fullpath)
        scope = scope.strip('/')
        if (fullpath + '/').startswith(scope + '/'):
            return fullpath[len(scope) + 1:] or '/'
Remove the leading scope from repository paths.
dataset/ETHPy150Open edgewall/trac/tracopt/versioncontrol/svn/svn_fs.py/_path_within_scope