def is_subpath(self, path, checkpath):
        path = unquote(path)
        checkpath = unquote(checkpath)
        # Remove trailing slashes from filepath
        checkpath = checkpath.replace("\/+$",'')
        if re.match("^%s(\/|$)" % checkpath, path):
           return True
dataset/ETHPy150Open douban/gpack/ghttp.py/GHTTPServer.is_subpath/original