[FreeRTOS+FAT Standard API Reference]
int ff_rmdir( const char *pcPath );
Remove a directory from the embedded FAT file system. A directory can only be removed if it does not contain any files.
A pointer to a standard null terminated C string that holds
the name of the directory being removed. The string
can include a relative path.
If the directory was removed successfully then zero is returned.
void vExampleFunction( void )
/* Create a sub directory called subfolder, and sub directory within
subfolder called sub1. */
ff_mkdir( “subfolder” );
ff_mkdir( “subfolder/sub1” );
/* The directories can be accessed here. */
/* Delete the two sub directories again. */
ff_rmdir( “subfolder/sub1” );
ff_rmdir( “subfolder” );
Example use of the ff_rmdir() API function to delete a directory