This site required JavaScript
to be enabled. Click here to
view a static menu.
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.
Parameters:
If the directory was removed successfully then zero is returned.
If the directory could not be removed then -1 is returned and the task's errno is set to indicate the reason. A task can obtain its errno value using the ff_errno() API function.
Example usage:
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" );
}