I have a batch of files
I know how to query files
drive.ListFile({'q': "'id' in parents and trashed=false"}).GetList()
Now I want to batch files
Setting can only view and prohibit download
But I don’t know how to achieve
Advertisement
Answer
After finding your GoogleDrive file.
Use copyRequiresWriterPermission = True.
Then upload.
file['copyRequiresWriterPermission'] = True file.Upload()