Nffs add mkdir_p
add ListFiles example
This commit is contained in:
1 parent
2dc6b89e2e
commit
1b555e7b52
9 files changed
+173
-8
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user