Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The directory access functions provide an API for iterating through the entries within a directory. The fs_opendir() function initiates this procedure, and each subsequent call to fs_readdir_r() (until all entries have been examined) returns information about a particular entry in a struct fs_dirent. The fs_closedir() function releases any file system structures and locks.

The listing below gives an example using the directory access functions to list the files in a directory.

...