From HTML5 Builder
MDirectoryReader lets your application list the content of a directory, files and folders.
Note: Replace ComponentName with the actual name of the component, that is, the value of its Name property. For example: MDirectoryReader1.
- Read file and folder entries inside the folder it works on. It triggers OnReadEntries event, or OnReadEntriesError if an error occurs.
- This event gets triggered when ComponentNameReadEntries successfully returns an array of DirectoryEntry and FileEntry objects, which is its only parameter.
- This event gets triggered when an error occurs after calling ComponentNameReadEntries. Its only parameter is a ContactError object.