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 ?C_2fFS File and Directory Names and Paths. ?C_2fFS File and Directory Names and Paths
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 Entry Error Codes).
Returned Value
DEF_NO
, if dir is not open.
DEF_YES
, if dir is open.
Notes/Warnings
None.