Update gdriveTools.py

This commit is contained in:
Anas 2021-11-24 11:22:59 +02:00 committed by GitHub
parent 631e831dbb
commit 2e504d0420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -718,7 +718,7 @@ class GoogleDriveHelper:
else:
msg += f"<b><a href={furl}>Drive Link</a></b>"
if INDEX_URLS[index] is not None:
if isRecursive:
if isRecur:
url_path = "/".join([requests.utils.quote(n, safe='') for n in self.get_recursive_list(file, parent_id)])
else:
url_path = requests.utils.quote(f'{file.get("name")}')
@ -741,7 +741,7 @@ class GoogleDriveHelper:
else:
msg += f"<b><a href={furl}>Drive Link</a></b>"
if INDEX_URLS[index] is not None:
if isRecursive:
if isRecur:
url_path = "/".join(
requests.utils.quote(n, safe='')
for n in self.get_recursive_list(file, parent_id)