chore: update wetransfer script from upstream

This commit is contained in:
Ahmed Zetao Yang
2021-02-06 10:14:20 +08:00
committed by borgmanJeremy
parent 186da9e08f
commit d6a7ca6e6d

View File

@@ -115,7 +115,7 @@ def download_url(url: str) -> str:
def _file_unquote(file: str) -> str:
"""Given a URL encoded file unquote it.
All occurrences of `\', `/' and `../' will be ignored to avoid possible
All occurences of `\', `/' and `../' will be ignored to avoid possible
directory traversals.
"""
return urllib.parse.unquote(file).replace('../', '').replace('/', '').replace('\\', '')
@@ -297,7 +297,7 @@ def upload(files: List[str], message: str = '', sender: str = None,
Also accepts optional parameters:
- `message': message used as a description of the transfer
- `sender': email address used to receive an ACK if the upload is
successful. For every download by the recipients an email
successfull. For every download by the recipients an email
will be also sent
- `recipients': list of email addresses of recipients. When the upload
succeed every recipients will receive an email with a link