Iterating through directories and volumes

The File System interface provides four classes that you can use for iterating through directories and volumes:

When you instantiate one of these iterators, you have the option of specifying a property set and a property query. This means that you can specify a set of characteristics you want to retrieve, and use the iterator to query for the file system entities with matching properties.

NOTE To learn more about property sets and queries, read Chapter 5, "Properties" in Foundation Services.

Each iterator provides First and Next member functions, both of which optionally accept a property set as a parameter. Use the First function to get the first entity, and the Next function to retrieve consecutive entities. The First function must be executed before any Next functions.

All iterator member functions return kEndOfIteration when there are no more entities through which to iterate.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker