Skip to content
Advertisement

Setting can only see and prohibit download

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()
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement