Skip to content

Instantly share code, notes, and snippets.

View Kkuntal990's full-sized avatar
🎯
Focusing

Kuntal Kokate Kkuntal990

🎯
Focusing
View GitHub Profile
@xflr6
xflr6 / walk_gdrive.py
Last active January 31, 2024 19:11
Recursively traverse the directory tree of a Google Drive folder as variation of os.walk()
"""os.walk() variation with Google Drive API."""
import os
from apiclient.discovery import build # pip install google-api-python-client
FOLDER = 'application/vnd.google-apps.folder'
def get_credentials(scopes, *,