I am running MQX4.2 and have built USB and MFS into my project. A USB drive is interfaced OK and MFS installed. I can read using 'read' a file so I am confident MFS is OK. Is there a short way of reading the count of files in the present directory?
I would suggest you try IO_IOCTL_FIND_FIRST_FILE,IO_IOCTL_FIND_NEXT_FILE commands to search on the disk. There is an example to list all files and sub directories in a directory. You can count the files in a specified directory.
Please refer to the MQX_MFS_User_Guide.pdf, section 126.96.36.199 for more details.
Thanks. That's what I did in the end. I was hoping there was a simple command as this is rather long winded just to get a file count. Works though
I agree with you it is long, but MFS does not provide a simple command as your expected.
Retrieving data ...