Files
microReticulum/examples/test/TestFilesystem.h
T
Chad Attermann 1b1beab4fa WIP: Work toward removing platform-specifics
Moved LoRa and UDP test code into `examples` folder.
Moved `main.cpp` test app to `examples` folder.
Removed platform-specific filesystem code and replaced with an interface
to be implemeneted by the consumer.
2024-05-26 17:28:51 -06:00

21 lines
552 B
C++

#pragma once
#include <Filesystem.h>
#include <Bytes.h>
class TestFilesystem : public RNS::Filesystem {
public:
TestFilesystem();
virtual ~TestFilesystem();
protected:
virtual bool file_exists(const char* file_path);
virtual const RNS::Bytes read_file(const char* file_path);
virtual bool write_file(const RNS::Bytes& data, const char* file_path);
virtual bool remove_file(const char* file_path);
virtual bool rename_file(const char* from_file_path, const char* to_file_path);
virtual bool create_directory(const char* directory_path);
};