Download FreeRTOS
 

Quality RTOS & Embedded Software

LIBRARIES
WHAT'S NEW
Simplifying Authenticated Cloud Connectivity for Any Device.
Designing an energy efficient and cloud-connected IoT solution with CoAP.
Introducing FreeRTOS Kernel version 11.0.0:
FreeRTOS Roadmap and Code Contribution process.
OPC-UA over TSN with FreeRTOS.

f_rmdir()

[FreeRTOS Embedded File System API]

header_file.h
unsigned char f_rmdir( const char *pcDirectoryName );
		

Remove a directory from the embedded FAT file system. Only empty directories can be removed.

Parameters:

pcDirectoryName   The name of the directory being removed.

Returns:
F_NO_ERROR   The directory was removed (deleted).

Any other value   The directory was not removed (was not deleted). The return value holds the error code.

See also

f_chdir(), f_mkdir().

Example usage:


void vExampleFunction( void )
{
/* Create a sub directory called subfolder, and sub directory within
subfolder called sub1. */

f_mkdir( "subfolder" );
f_mkdir( "subfolder/sub1" );

/* The directories can be accessed here. */

/* Delete the two sub directories again. */
f_rmdir( "subfolder/sub1" );
f_rmdir( "subfolder" );
}

Example use of the f_rmdir() API function
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.