Reads a directory entry.
- Parameters
-
dir | Directory descriptor. |
dirent | Pointer to the entry information structure. |
- Returns
- This function returns:
- FNET_OK if no error occurs.
- FNET_ERR if an error occurs or end of directory stream is reached.
- See also
- fnet_fs_opendir(), fnet_fs_rewinddir(), fnet_fs_finfo()
This function fills the dirent
structure representing the directory entry at the current position and increments the position to the next entry.
When the end of the directory is encountered, the FNET_ERR is returned.
The function reads directory entries in sequence. All items in the directory can be read by calling the fnet_fs_readdir() function repeatedly.