Split question mark url params in url_to_path.

master
voussoir 2022-01-14 23:43:36 -08:00
parent 7a7c179997
commit a308c10767
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 1 additions and 0 deletions

View File

@ -467,6 +467,7 @@ def path_to_url(path):
def url_to_path(path):
path = urllib.parse.unquote(path)
path = path.strip('/')
path = path.split('?')[0]
return pathclass.Path(path)
def zip_directory(path):