question

xsohaix avatar image
xsohaix asked

What is the reason of supporting multiple parent nodes per file node?

May I know the reason behind the API supporting multiple parent folder nodes in a file node? What is the use case? Isn't most file can only have one parent? If the same file should appear in multiple folders, each of them should be a separate copy of the same file right? Not one file links to multiple folders. Can somebody clarify this to me? Thanks! The model of FILE: "parents": {String...} List of parent folder Ids.
amazon drive
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rambalac avatar image
rambalac answered
Probably they tried to eliminate file duplication but failed to do it properly. While you can detect duplication by MD5 and just add new parent if you want to get same file in another folder it will have the same name in all parents.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rambalac avatar image
rambalac answered
Also shared files have additional parent which is shared collection
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.