Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HttpClientSamlpe AsyncHttpdSample MbedFileServer TcpSocketClientSamlpe ... more
Fork of NySDFileSystem by
Diff: FATFileSystem/FATDirHandle.cpp
- Revision:
- 6:972a52e4d92c
- Parent:
- 5:2c7b6bd5b079
--- a/FATFileSystem/FATDirHandle.cpp Thu Apr 25 02:14:56 2013 +0000
+++ b/FATFileSystem/FATDirHandle.cpp Fri Apr 26 09:07:37 2013 +0000
@@ -48,6 +48,8 @@
if(res != 0 || finfo.fname[0]==0) {
return NULL;
} else {
+ cur_entry.fattrib=finfo.fattrib;
+ cur_entry.fsize=finfo.fsize;
if(cur_entry.d_name[0]==0) {
// No long filename so use short filename.
memcpy(cur_entry.d_name, finfo.fname, sizeof(finfo.fname));
@@ -58,6 +60,7 @@
if(res != 0 || finfo.fname[0]==0) {
return NULL;
} else {
+ cur_entry.fatatlib=finfo.fattrib;
memcpy(cur_entry.d_name, finfo.fname, sizeof(finfo.fname));
return &cur_entry;
}
