Cloud Storage Integrator 2016 Node.js Edition
Cloud Storage Integrator 2016 Node.js Edition
Questions / Feedback?

ResourceList Event

Fires once for each resource when ListResources is called.

Syntax

googledrive.on('ResourceList', [callback])

Callback

The 'callback' is called when the 'ResourceList' event is emited.

function(e){ }

The argument 'e' has the following properties:

e.id
e.name
e.description
e.resourceType
e.extension
e.modifiedTime
e.size

Remarks

This event fires once for each resource returned when ListResources is called.

Id is the Id of the resource.

Name holds the resource's name.

Description holds a short description of the resource (if any).

ResourceType identifies if the resource is a file or folder. Possible values are:

0 A file
1 A folder

Extension is the file extension.

ModifiedTime holds a DateTime string representing the modified date of the resource. This is a combined date-time value (formatted according to RFC 3339).

Size holds the size of the file in bytes. This is only applicable to files.

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
Cloud Storage Integrator 2016 Node.js Edition - Version 16.0 [Build 7239]