Versions Compared

Key

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


...

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

...

summary
HTML Table
classPlain_Table
Table Row (tr)
Table Cell (td)
Anchor
11101391110139


File

...

Called from

...

Code enabled by

...

...

fs_api.c

...

...

Application

...

FS_CFG_API_EN and not FS_CFG_RD_ONLY_EN

...

10923411092341Delete a directory. Anchor11048391104839

Arguments

...

1092343name_fullanchor11408961140896

Name of the file.

...

Returned Value

...

10923460, if the directory is removed.

Anchor10923471092347-1, if the directory is not removed. Anchor11002371100237

Notes/Warnings

...

...

  1. A directory can be removed only if it is an empty directory.

...

  1. The root directory cannot be removed.

...

...

Example

...

Code Block

...

void
HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan15
Anchor
11233311123331
language

...

{ int err; . . . err = fs_rmdir(“sd

{
    int  err;
    .
    .
    .
    err = fs_rmdir("sd:0:\\data\\
old”
old");            /* Remove dir.   */
if

    if (err != 0)
{
 {
        APP_TRACE_INFO((
“Could
"Could not remove dir.
"));
} . . . }tr

    }
   
    .
    .
    .
}
cpp
void  App_Fnct (void)
Anchor
11233331123333
Anchor
11233351123335
Anchor
11233371123337
Anchor
11233391123339
Anchor
11233411123341
Anchor
11233431123343
Anchor
11233451123345
Anchor
11233471123347
Anchor
11233491123349
Anchor
11233511123351
Anchor
11233531123353
Anchor
11233551123355
Anchor
11233571123357
Anchor
11233591123359
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)