IP*Works! 2016 C++ Edition
IP*Works! 2016 C++ Edition
Questions / Feedback?

DirList Event

Fired when a directory entry is received.

Syntax

 virtual int FireDirList(FTPDirListEventParams *e);

 
typedef struct {
char* DirEntry;
char* FileName;
int IsDir;
ns_int64 FileSize;
char* FileTime;
int reserved;
} FTPDirListEventParams;

Remarks

The DirList events are fired when a directory listing is received as a response to a ListDirectory or ListDirectoryLong call.

The StartTransfer and EndTransfer events mark the beginning and end of the event stream.

The DirEntry parameter contains the filename when ListDirectory is called, and extended file information when ListDirectoryLong is called.

The class tries to fill out the FileName, IsDir, FileSize, and FileTime parameters when calling the ListDirectoryLong method. Except for FileName, these parameters are empty when a short 'List Directory' is performed.

In Unix systems the date is given in two types of formats: If the date is in the last 12 months the exact time is specified and the year is omitted. Otherwise only the date and the year but not hours or minutes are given.

 
 
Copyright (c) 2020 /n software inc. - All rights reserved.
IP*Works! 2016 C++ Edition - Version 16.0 [Build 7353]