mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
21 lines
562 B
C++
21 lines
562 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 size_t read_file(const char* file_path, RNS::Bytes& data);
|
|
virtual size_t write_file(const char* file_path, const RNS::Bytes& data);
|
|
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);
|
|
|
|
};
|