Nffs add mkdir_p

add ListFiles example
This commit is contained in:
hathach committed 2017-03-01 13:08:53 +07:00
1 parent 2dc6b89e2e
commit 1b555e7b52
9 files changed
+173 -8

No files matched your search

+8 -1
View File
@@ -93,9 +93,16 @@ bool NffsDir::existed(void)
NffsDirEntry NffsDir::read(void)
{
struct fs_dirent* dirent;
struct fs_dirent* dirent = NULL ;
errnum = fs_readdir(_dir, &dirent);
return NffsDirEntry(dirent);
}
bool NffsDir::read(NffsDirEntry* entry)
{
*entry = read();
return entry->existed();
}