Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Homepage FreeRTOS+ Products FreeRTOS Labs Integration Services Contact / Enquiries


[FreeRTOS Embedded File System API]

unsigned char f_mkdir( const char *pcDirectoryName );

Create a new directory in the embedded FAT file system.


pcDirectoryName   The name to assign to the created directory.

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

[ Back to the top ]    [ About FreeRTOS ]    [ FreeRTOS+ Sitemap ]    [ Main FreeRTOS Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.