#pragma once #include #include class FsHelper { public: static FsHelper& get(); esp_err_t mount(); void unmount(); bool isMounted() const { return mounted; } const char* basePath() const { return kBasePath; } const char* partitionLabel() const { return kPartitionLabel; } private: FsHelper() = default; static constexpr const char* kBasePath = "/lfs"; static constexpr const char* kPartitionLabel = "littlefs"; static constexpr const bool kFormatOnFailure = true; bool mounted = false; };