def get_path(self):
encoded_path = self._uri.path
if get_platform() == OSPlatform.WINDOWS:
# prepend "netloc" (the drive letter - e.g. "c:")
encoded_path = self._uri.netloc + encoded_path
# decode all special characters like "%20" and replace "/" with "\\" (Windows)
return url2pathname(encoded_path)
评论列表
文章目录