f_closedir

The f_closedir function closes an open directory.

FRESULT f_closedir (
  DIR* dp     /* [IN] Pointer to the directory object */
);

Parameter

dp
Pointer to the open directory object structure to be closed.

Return Values

FR_OK, FR_INT_ERR, FR_INVALID_OBJECT, FR_TIMEOUT

Description

The f_closedir function closes an open directory object. After the function succeeded, the directory object is no longer valid and it can be discarded.

Note that the directory object can also be discarded without this process when option _FS_LOCK is not enabled. However this is not recommended for future compatibility.

QuickInfo

Available when _FS_MINIMIZE <= 1.

See Also

f_opendir, f_readdir, DIR

Return