Skip to content

Instantly share code, notes, and snippets.

View BrenoAlberto's full-sized avatar
🦜
peace tranquility mind flowers

Breno Alberto BrenoAlberto

🦜
peace tranquility mind flowers
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kiurtis
kiurtis / gdrive_upload_folder_with_subfolders.py
Last active January 20, 2022 17:05 — forked from jmlrt/gdrive_upload_folder.py
Python script to upload folder to Google Drive
# -*- coding: utf-8 -*-
"""
Snippet based on pydrive allowing to upload full folders to Google Drive, replicating the same subfolders hierarchy.
Settings are set in the yaml files; don't forget to generate google api credentials and to put the client_secrets.json in the folder.
You should get first the id of the parent folder (the gdrive folder where you want to copy your folders), which is the
end of its url.
If the destination folder does not exist, it will be created.