parents property

List<ParentReference>? parents
getter/setter pair

The ID of the parent folder containing the file.

A file can only have one parent folder; specifying multiple parents isn't supported. If not specified as part of an insert request, the file is placed directly in the user's My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.

Implementation

core.List<ParentReference>? parents;