1

Does anyone knows if the google folder id changes over time? Assuming, obviously, the folder is not deleted and recreated.

I'm trying to be limit the quota usage as much as possible, by storing the ID on our side.

Thanks

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
BSE
  • 13
  • 2

1 Answers1

1

UPDATE (2015/09/01) Per 'BSEs' comment below.

Sorry, I assumed it is Android (being professionally distorted). Anyway, to make sure, look at the ID string in question and compare it with the ID you get from drive.google.com > right click > Get link. You should see something like:

https://drive.google.com/open?id=0B1mqwertyasdfghZxCvbItM0E

If the id= string matches your resource ID, you're cool. Sorry for the confusion.

ORIGINAL (incorrect for .NET, applies to GooPlaySvcs/GDAA on Android)

I believe it does.

When testing the ResourceId availability here, I remember getting DriveId in one form immediately in the 'onResult()' callback. Later, when the 'onCompletion()' event occured, the DriveId of the same object looked very different (applies to both file and folder) .

Also, look at Daniel's comment here, it suggests that you should not rely on the value of the DriveId in any moment and use 'equals()'.

The ResourceId would be more appropriate ID to store, shuttle around, etc... DriveId is useless outside the GooPlaySvcs instance. And, based on some hints from Drive-Involved-Googlers, relying on a concrete value of DriveId is dangerous. That makes existence of 'encodeToString() / decodeFromString()' somewhat questionable, right?

Good Luck

Community
  • 1
  • 1
seanpj
  • 6,735
  • 2
  • 33
  • 54
  • Since, I'm using the .net drive api. I believe, that the ID returned by Files.List() It's a resource ID and not Folder ID. If this is true, should I assume that this is Unique for me to store? . – BSE Sep 01 '15 at 11:20
  • Thanks. The ID I get from the ID from the API is exactly the same as the one from "Get Link" . – BSE Sep 01 '15 at 12:36
  • In addition, this ID is the only also shown when file/folder is being shared. This must be unique, otherwise if it does changes then everyone's share wouldn't work after sometime. I'll accept this. – BSE Sep 01 '15 at 12:46