IPWorks Cloud 2020 Node.js Edition

Questions / Feedback?

ResourceList Event

Fires once for each resource returned when listing resources.

Syntax

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

Callback

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

function(e){ }

The argument 'e' has the following properties:

e.name
e.path
e.share
e.resourceType
e.modifiedTime
e.size
e.ETag

Remarks

This event fires once for each resource returned when ListResources, GetFileInfo, or GetFolderInfo is called.

Name is the name of the resource.

Path is the full path of the resource (not including the share).

Share is the name of the share the resource resides in.

ResourceType reflects the resource's type. Possible values are:

0 (afrtFile) A file.
1 (afrtFolder) A folder.

ModifiedTime is the last modified time of the resource, formatted according to RFC 1123. (Note: this parameter is not populated by calls to ListResources.)

Size is the size of the file. Always 0 for folders.

ETag is the ETag of the resource. (Note: this parameter is not populated by calls to ListResources.)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Node.js Edition - Version 20.0 [Build 8265]