Fork of FATFileSystem that exposes FILINFO in the FATDirHandle. This allows obtaining true file sizes and testing whether a dir pointer is a directory or a file.
Dependents: SDFileSystemNoStall
Fork of FATFileSystem by
Diff: FATDirHandle.h
- Revision:
- 5:f40c1ca31913
- Parent:
- 1:46ce1e16c870
--- a/FATDirHandle.h Thu Aug 28 13:15:31 2014 +0100 +++ b/FATDirHandle.h Thu Oct 30 06:19:16 2014 +0000 @@ -23,6 +23,7 @@ #define MBED_FATDIRHANDLE_H #include "DirHandle.h" +//struct FILINFO; using namespace mbed; @@ -35,9 +36,11 @@ virtual void rewinddir(); virtual off_t telldir(); virtual void seekdir(off_t location); + virtual const FILINFO *filinfo() { return &cur_filinfo; } private: FATFS_DIR dir; + FILINFO cur_filinfo; struct dirent cur_entry; };