IPWorks Cloud 2020 JavaScript Edition

Questions / Feedback?

ResourceList Event

Fires once for each resource returned when listing resources.

Syntax

azurefile.on('ResourceList', listener: (e: {readonly name: string, readonly path: string, readonly share: string, readonly resourceType: number, readonly modifiedTime: string, readonly size: number, readonly ETag: string}) => void )

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 JavaScript Edition - Version 20.0 [Build 8265]