Filesystem Interface
Public header: #include "brookesia/hal_interface/interfaces/storage/fs.hpp"
Class: StorageFsIface
API Reference
Header File
Classes
-
class StorageFsIface : public esp_brookesia::hal::Interface
File-system discovery interface for storage-capable devices.
Public Types
Public Functions
-
inline StorageFsIface()
Construct a storage file-system interface.
-
virtual ~StorageFsIface() = default
Virtual destructor for polymorphic storage interfaces.
-
inline const std::vector<Info> &get_all_info() const
Enumerate all mounted file-system entries.
- Returns
Collection of file-system metadata entries.
-
virtual bool get_capacity(const char *mount_point, Capacity &capacity) = 0
Query the capacity of a mounted file system.
- Parameters
mount_point -- Mount point returned by
get_all_info().capacity -- Output capacity snapshot.
- Returns
true if the capacity was queried successfully, otherwise false.
-
struct Capacity
Dynamic capacity snapshot for one mounted file-system entry.
-
struct Info
Metadata for one mounted file-system entry.
Public Members
-
FileSystemType fs_type
File-system type.
-
MediumType medium_type
Storage medium type.
-
const char *mount_point
Mount point.
-
bool supports_directories = false
Whether this file system supports directories.
-
FileSystemType fs_type
-
inline StorageFsIface()