DIR has incomplete type and cannot be defined

Hello,

I am trying to list the file contents of a directory on flash storage that uses littlefs. Every time I try to create a Dir object, the compiler (Mbed CLI with GCC ARM) says that ‘DIR has incomplete type and cannot be defined’. Is there something that needs to be included that isn’t included by default? Or am I trying to use it wrong? Thanks!

Hello,

can you send the error output of the compiler?

BR Andreas