2021-06-27 17:56:28 +00:00
|
|
|
#include "configuration.h"
|
2020-11-19 01:25:02 +00:00
|
|
|
#include "FSCommon.h"
|
|
|
|
|
|
|
|
void fsInit()
|
|
|
|
{
|
2022-02-14 17:45:29 +00:00
|
|
|
#ifdef FSCom
|
|
|
|
if (!FSBegin())
|
2020-11-19 01:25:02 +00:00
|
|
|
{
|
|
|
|
DEBUG_MSG("ERROR filesystem mount Failed\n");
|
|
|
|
assert(0); // FIXME - report failure to phone
|
|
|
|
}
|
|
|
|
|
|
|
|
DEBUG_MSG("Filesystem files:\n");
|
2022-02-14 17:45:29 +00:00
|
|
|
File dir = FSCom.open("/");
|
2020-11-19 01:25:02 +00:00
|
|
|
File f = dir.openNextFile();
|
|
|
|
while (f) {
|
|
|
|
DEBUG_MSG(" %s\n", f.name());
|
|
|
|
f.close();
|
2022-02-14 17:45:29 +00:00
|
|
|
f = dir.openNextFile();
|
2020-11-19 01:25:02 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|