Real time embedded FreeRTOS RSS feed 
Homepage FreeRTOS+ Products FreeRTOS Labs Support Forum Contact / Enquiries

f_chdir()

[FreeRTOS Embedded File System API]

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

Change the working directory in the embedded FAT file system.

Parameters:

pcDirectoryName   The name of the target directory.

Returns:
F_NO_ERROR   The current directory was changed to pcDirectoryName.

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

See also

f_mkdir(), f_rmdir(), f_getcwd().

Example usage:


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

    /* Change the working directory to the newly created directory. */
    f_chdir( "subfolder" );
}
						
Example use of the f_chdir() API function


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


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.