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 )
{
f_mkdir( "subfolder" );
f_chdir( "subfolder" );
}
Example use of the f_chdir() API function
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.