Cloud Storage Integrator - Online Help
Cloud Storage Integrator
Questions / Feedback?

DirList Event

Fired when a directory entry is received.

Syntax

typedef void __fastcall (__closure *TicsCloudStorageDirListEvent)(System::TObject* Sender, TicsCloudStorageDirListEventParams *e);

__property TicsCloudStorageDirListEvent OnDirList = {read=FOnDirList, write=FOnDirList};

typedef struct {
     String FileName;
     bool IsDir;
     __int64 FileSize;
     String FileTime;
} TicsCloudStorageDirListEventParams;

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
Box XX
Dropbox X
GoogleDrive X
OneDrive XX
SharePoint

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
  • Dropbox

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 1.0.6240.0