The FolderEnum object is returned from the FSUtil.ReadDir method. It lets you enumerate (optionally, recursively) the contents of a folder.
Property Name |
Return Type |
Description |
---|---|---|
complete |
bool |
True if the enumeration is complete, otherwise False. |
error |
int |
If an error occurs this will return the error code. It will return 0 on success. |
Method Name |
Arguments |
Return Type |
Description |
---|---|---|---|
Close |
none |
none |
Closes the underlying file system handle used to perform the enumeration. You might call this method if you want to delete the folder you just enumerated. After this method is called the complete property will return True. |
Next |
<int:count> |
Returns the next item in the enumeration.
You can also create your own Vector and pass it as the second argument to stop Opus creating a new Vector each time. |