Nicholas DiPiazza
Nicholas DiPiazza

Reputation: 10605

Google drive api - com.google.api.services.drive.Drive.files() - None of the File objects have permissions?

When using the google drive api

I use com.google.api.services.drive.Drive.files() to iterate some files.

I noticed None of the Directory objects have permissions?

When I use the File objects, the com.google.api.services.drive.model.File.getPermissions() method always returns null.

Is there some way I can get this list method to return the permissions as well?

Otherwise I'll have to pummel the google api?

Upvotes: 1

Views: 171

Answers (1)

CJ Thompson
CJ Thompson

Reputation: 2869

Are you using the fields option to include permissions? I don't generally use the Java SDK, but I think look into setFields()

Upvotes: 1

Related Questions