Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-15 22:04:42 +02:00
parent d8a3d133da
commit abf20ce9ed

View File

@ -217,7 +217,7 @@ class GdriveSync(plugins.Plugin):
zip_file = self.drive.CreateFile({'title': 'backup.zip', 'parents': [{'id': gdrive_folder}]})
# Set the content of the file to the zip file
zip_file.SetContentFile(backup_path)
zip_file.SetContentFile(os.path.join(backup_path, 'backup.zip'))
# Upload the file to Google Drive
zip_file.Upload()