Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hi,
About, after mbed v44 system.
opendir() function can not get sd directory pointer.
It's bug or method was changed?
SDFileSystem *sd = new SDFileSystem( p5, p6, p7, p8, "sd" ); DIR *d; struct dirent *p; d = opendir( "/sd" ); if ( d != NULL ) { while ( ( p = readdir( d ) ) != NULL ) { pc.printf( "/sd/%s\n", p->d_name ); } closedir( d ); } else { pc.printf( "No SD card.\n" ); }