Nicholas DiPiazza Nicholas DiPiazza - 6 months ago 19
Java Question

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?

Answer

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

Comments