Take a look at this: FreeRTOS+IO.
But as you are referring to opendir()
, readdir
, etc, i suppose you need a File System library, and if it's the case, this is an excellent one : FatFs.
Should not be difficult to make FatFs work with FreeRTOS+IO.