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

DirList Event

Fired when a directory entry is received.

Syntax

cloudstorage.on('DirList', [callback])

Callback

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

function(e){ }

The argument 'e' has the following properties:

e.fileName
e.isDir
e.fileSize
e.fileTime

Remarks

This event fires once for each entry returned when ListDirectory is called.

FileName holds the name of the file or folder.

IsDir is True for directories and False for files.

FileSize is the size of the file in bytes. For some providers this also applies directories and will return the size of all files and folders within the directory.

The table below summarizes the applicability of this value on a per-provider basis:

Service ProviderFilesDirectories
AmazonS3 X
Azure Blob X
Box XX
DigitalOcean X
Dropbox X
GoogleDrive X
OneDrive XX
SharePoint
Wasabi X

FileTime is the modified date of the file. By default the datetime format used is "yyyy-MM-dd'T'HH:mm:ss". To modify this format set DateFormat.

Note: Modified times are not applicable to directories for the following providers:

  • Amazon S3
  • DigitalOcean
  • Dropbox
  • Wasabi

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