0

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

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
dudulu
  • 754
  • 6
  • 17

1 Answers1

0

After finding your GoogleDrive file.

Use copyRequiresWriterPermission = True.

Then upload.

file['copyRequiresWriterPermission'] = True
file.Upload()
dudulu
  • 754
  • 6
  • 17