8 years, 6 months ago.  This question has been closed. Reason: Unclear question

How to use "opendir" to open folder??

LocalFileSystem local("local");
int main()
{
DIR *d = opendir("/local/myfolder/");
struct dirent *p; while((p = readdir(d)) != NULL) {
pc.printf("%s\n", p->d_name);
}
closedir(d);
}

I am using LPC1768. I cannot list the file in the "myfolder" folder. Can anyone help, pls.