From 63635c9b9b6f4455be214ca435cf33e860c45309 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 13 Oct 2023 18:06:23 +0200 Subject: [PATCH] v2.4.7 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/gdrivesync.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/gdrivesync.py b/pwnagotchi/plugins/default/gdrivesync.py index 64c14292..109e56e3 100644 --- a/pwnagotchi/plugins/default/gdrivesync.py +++ b/pwnagotchi/plugins/default/gdrivesync.py @@ -112,8 +112,13 @@ class GdriveSync(plugins.Plugin): def get_folder_id_by_name(self, drive, folder_name): file_list = drive.ListFile( - {'q': "title='" + folder_name + "' and mimeType='application/vnd.google-apps.folder' and trashed=false"}).GetList() - if file_list: + { + 'q': "title='" + folder_name + "' and mimeType='application/vnd.google-apps.folder' and trashed=false", + 'corpora': 'allDrives', + 'includeItemsFromAllDrives': True, + 'supportsAllDrives': True, + }).GetList() + if file_list != []: return file_list[0]['id'] return None