Dart API Referencedart:ioDirectoryLister

DirectoryLister Interface

A DirectoryLister represents an actively running listing operation.

For each file and directory, the file or directory handler is called. When all directories have been listed the done handler is called. If the listing operation is recursive, the error handler is called if a subdirectory cannot be opened for listing.

Methods

Code void set onDir(void onDir(String dir)) #

Sets the directory handler that is called for all directories during listing. The directory handler is called with the full path of the directory.

void set onDir(void onDir(String dir));

Code void set onDone(void onDone(bool completed)) #

Set the handler that is called when a listing is done. The handler is called with an indication of whether or not the listing operation completed.

void set onDone(void onDone(bool completed));

Code void set onError(void onError(e)) #

Sets the handler that is called if there is an error while listing directories.

void set onError(void onError(e));

Code void set onFile(void onFile(String file)) #

Sets the handler that is called for all files during listing. The file handler is called with the full path of the file.

void set onFile(void onFile(String file));