You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 22, 2021. It is now read-only.
How do I get the ID of a specifically named folder? #210
Ok so when the specific folder is not created I can create it, but If it exists I need the ID of the folder to work with it.
This is my code so far:
f = drive.ListFile({"q": "mimeType='application/vnd.google-apps.folder' and trashed=false"}).GetList()
AllFolders = []
for folder in f:
AllFolders.append(folder['title'])
if "Pythontesting1" not in AllFolders:
folder_metadata = {'title' : 'Pythontesting1', 'mimeType' : 'application/vnd.google-apps.folder'}
folder = drive.CreateFile(folder_metadata)
folder.Upload()
else:
#What do I put here?
Activity