FSEntry_TimeSet()

void  FSEntry_TimeSet (CPU_CHAR      *name_full,
                       FS_DATE_TIME  *p_time,
                       CPU_INT08U     flag,
                       FS_ERR        *p_err);

File

Called from

Code enabled by

fs_entry.c

Application

not FS_CFG_RD_ONLY_EN

Set a file or directory’s date/time.

Arguments

name_full

Name of the entry. See the sub-topic "µC/FS File and Directory Names and Paths" in the topic Useful Information.

p_time

Pointer to date/time.

flag

Flag to indicate which Date/Time should be set

FS_DATE_TIME_CREATE

Entry Created Date/Time will be set.

FS_DATE_TIME_MODIFY

Entry Modified Date/Time will be set.

FS_DATE_TIME_ACCESS

Entry Accessed Date will be set.

FS_DATE_TIME_ALL

All the above will be set.

p_err

Pointer to variable that will the receive return error code from this function:

FS_ERR_NONE

Entry date/time set successfully.

FS_ERR_NAME_NULL

Argument name_full or p_time passed a NULL pointer.

FS_ERR_FILE_INVALID_DATE_TIME

Date/time specified invalid.

FS_ERR_NAME_INVALID

Entry name specified invalid OR volume could not be found.

FS_ERR_NAME_PATH_TOO_LONG

Entry name specified too long.

FS_ERR_VOL_NOT_OPEN

Volume was not open.

FS_ERR_VOL_NOT_MOUNTED

Volume was not mounted.

FS_ERR_BUF_NONE_AVAIL

Buffer not available.

FS_ERR_DEV

Device access error.

Returned Value

None.

Notes/Warnings

None.