Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
languagecpp
void  FSEntry_AttribSet (CPU_CHAR  *name_full,

...


                         FS_FLAGS   attrib,

...


                         FS_ERR    *p_err);


File

Called from

Code enabled by

fs_entry.c

Application

not FS_CFG_RD_ONLY_EN

...

name_full

Name of the entry. See section 4-3 “μCthe sub-topic "µC/FS File and Directory Names and Paths”Paths" in the topic Useful Information.

attrib

Entry attributes to set (see Note #2).

...

Device access error.

Or entry error (See section B-8 “Entry Error Codes” µC/FS Error Codes).

Returned Value

None.

Notes/Warnings

  1. If the entry does not exist, an error is returned.
  2. Three attributes may be modified by this function:

    FS_ENTRY_ATTRIB_RDEntry is readable.
    FS_ENTRY_ATTRIB_WREntry is writable.
    FS_ENTRY_ATTRIB_HIDDEN

    Entry is hidden from user-level processes.

    An attribute will be cleared if its flag is not OR’d into attrib. An attribute will be set if its flag is OR’d into attrib. If another flag besides these are set, then an error will be returned.

  3. The attributes of the root directory may not be set.