Yaroslav Mytkalyk
Yaroslav Mytkalyk

Reputation: 17115

Google Play Services DriveApi change file parent

I can't seem to find out how to move file into another folder using Drive.DriveApi from Google Play Services.

Only thing I see is using driveFolder.createFile(GoogleApiClient, MetadataChangeSet, Contents) but that's only if I'm going to upload a new file.

MetadataChangeSet.Builder() doesn't have any methods that point to file parent.

Is that impossible?

Upvotes: 1

Views: 67

Answers (1)

Cheryl Simon
Cheryl Simon

Reputation: 46844

Changing parents is not currently exposed in the Google Play Services API. You can fall back to the web RESTful API to do this if you need to: parents collection. Just get the resourceId from the DriveId.

Upvotes: 2

Related Questions