Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodFTPD
- Methods
- Properties
- Authentication
- BindIP
- BindIPType
- Certificate
- DirFormat
- Encryption
- EncryptionList
- FileLocking
- FIPS
- ForceUTF8
- GoodbyeMessage
- GreetingMessage
- HMacList
- HostKeyList
- KeyExchangeList
- MaxDataPort
- MinDataPort
- MonitorTransfers
- MyHostname
- MyIP
- Notification
- PasvPort
- Port
- Protocol
- Secure
- ServerName
- SFTPVersion
- Status
- StrictDataIP
- Threads
- Timeout
- UseIPv6
- Users
- Version
- VirtualFiles
- VirtualFolders
- Events
- wodFTPDNotify
- FtpUser
- FtpUsers
- VirtualFile
- VirtualFiles
- VirtualFolder
- VirtualFolders
- How to get support?
- Technical information
- Fast notifications interface
- Error list
ListDirData notification
Called just before list items will be sent to the client.
Syntax
- Basic
object.ListDirData Owner, User, DirData(), NamesOnly
The ListDirData(object,Owner,User,DirData(),NamesOnly) syntax has these parts:
The ListDirData(object,Owner,User,DirData(),NamesOnly) syntax has these parts:
object | An expression evaluating to an object of type wodFTPDNotify. |
Owner | A wodFTPDCom object. Reference to wodFTPServer instance that called this notification method. |
User | A FtpUser object. Reference to user who is listing directory contents. |
DirData() | An array of Byte values. Actual data as byte array (SAFEARRAY(unsigned char *) for VC++ users). |
NamesOnly | A Boolean value. Determines if DirData contains only names, or full information in each line. |
Remarks
NOTE: This method is called only if you implemented IwodFTPDNotify interface in your application, and wodFTPD.Notification property has received reference to instance of your implementation.ListDirData notification is called when client requests to see directory listing, but before it's sent to the client. This leaves you with room to change it if needed, to hide certain items, or add new ones.
If NamesOnly is set to True, it means that DirData argument contains only names of files/directories, not their detailed information (such as size, date, etc..) because the client requested data in this form.
You can change DirData any way you like - as long as it's valid Byte array. C++ users should declare it as SAFEARRAY(unsigned char) * to compile properly their applications.
We decided to present data as byte array because this produces the smallest overhead on the product. When directory contains many files (such as, for example, 30000), having DirData holding String variables could cause too much CPU usage on byte<>String conversion, which we wanted to avoid.