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_mkdir()

[FreeRTOS Embedded File System API]

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

Create a new directory in the embedded FAT file system.

Parameters:

pcDirectoryName   The name to assign to the created directory.

Returns:
F_NO_ERROR   The directory was created.

Any other value   The directory was not created. The return value holds the error code.

See also

f_chdir(), f_rmdir().

Example usage:


void vExampleFunction( void )
{
/* Create a sub directory called subfolder. */
f_mkdir( "subfolder" );

/* Create three subdirectories called sub1, sub2 and sub three respectively
inside the subfolder directory. */

f_mkdir( "subfolder/sub1" );
f_mkdir( "subfolder/sub2" );
f_mkdir( "subfolder/sub3" );
}

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