| 13 | static FatFsFilesystem* currentFatFs; |
| 14 | |
| 15 | static std::string modeToString(BYTE attrib) |
| 16 | { |
| 17 | std::stringstream ss; |
| 18 | if (attrib & AM_RDO) |
| 19 | ss << 'R'; |
| 20 | if (attrib & AM_HID) |
| 21 | ss << 'H'; |
| 22 | if (attrib & AM_SYS) |
| 23 | ss << 'S'; |
| 24 | if (attrib & AM_ARC) |
| 25 | ss << 'A'; |
| 26 | return ss.str(); |
| 27 | } |
| 28 | |
| 29 | class FatFsFilesystem : public Filesystem |
| 30 | { |