childType (property)
The resource's type.
Syntax
- (int)childType:(int)childIndex;
/* Possible Values */
GDRT_FILE(0),
GDRT_FOLDER(1)
public func childType(childIndex: Int32) throws -> GoogledriveChildTypes
public enum GoogledriveChildTypes : Int32 { case gdrtFile = 0 case gdrtFolder = 1 }
Default Value
0
Remarks
The resource's type.
This property indicates whether the resource is a folder or a file. Possible values are:
0 (gdrtFile) | A file. |
1 (gdrtFolder) | A folder. |
Google treats files and folders in the same way, and folders are included when listing resources. The ResourceType property can be used to determine if a resource is a folder or a file.
To list, delete, and update folders use the ListResources, DeleteResource, and UpdateResource methods.
The ChildIndex parameter specifies the index of the item in the array. The size of the array is controlled by the ChildCount property.
This property is read-only.