An application stores information in a file system by creating a file or appending new information to an existing file. At a later time, this information may be retrieved by reading the file. However, if a certain file must be found, or all files may be listed, the application can iterate through the entries in a directory using the directory access (or simply directory) functions. The available directory functions are listed in the directory API functions table.
...
The entry functions and the directory Open()
function accept one or more full directory paths. For information about using file and path names, see µC/FS File and Directory Names and Paths.
The functions listed in Table 9-1 the directory API functions table are core functions in the directory access module (FSDir_####()
functions). These are matched by API level functions that correspond to standard C or POSIX functions. More information about the API-level functions can be found in Chapter 10, “POSIX API” POSIX API. The core and API functions provide basically the same functionality; the benefits of the former are enhanced capabilities, a consistent interface and meaningful return error codes.
...