Versions Compared

Key

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


Code Block
languagecpp
int  fs_rmdir (const  char  *name_full);


File

Called from

Code enabled by

fs_api.c

Application

FS_CFG_API_EN and not FS_CFG_RD_ONLY_EN

...

  1. A directory can be removed only if it is an empty directory.
  2. The root directory cannot be removed.

Example

Code Block
languagecpp
void  App_Fnct (void)
{
    int  err;
    .
    .
    .
    err = fs_rmdir("sd:0:\\data\\old");            /* Remove dir.   */
    if (err != 0) {
        APP_TRACE_INFO(("Could not remove dir."));
    }
   
    .
    .
    .
}