FSDir_IsOpen()
CPU_BOOLEAN FSDir_Open (CPU_CHAR *name_full, FS_ERR *p_err);
File | Called from | Code enabled by |
---|---|---|
| Application; |
|
Test if a directory is already open. This function is also called by various FSEntry_*
functions to prevent concurrent access to an entry in the FAT filesystem.
Arguments
name_full
Name of the directory. See the sub-topic "µC/FS File and Directory Names and Paths" in the topic Useful Information.
p_err
Pointer to variable that will the receive return error code from this function:
FS_ERR_NONE
Directory opened.
FS_ERR_NAME_NULL
Argument name_full
passed a NULL pointer.
FS_ERR_NAME_INVALID
Entry name specified invalid or volume could not be found.
Or entry error (see µC/FS Error Codes).
Returned Value
DEF_NO
, if dir is not open.
DEF_YES
, if dir is open.
Notes/Warnings
None.