Setting can only see and prohibit download

24 views Asked by At

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

1

There are 1 answers

0
dudulu On BEST ANSWER

After finding your GoogleDrive file.

Use copyRequiresWriterPermission = True.

Then upload.

file['copyRequiresWriterPermission'] = True
file.Upload()