FSE/inc/FileSystem.hpp
IlyaShurupov 75722822f6 rd added
2024-03-28 00:05:07 +03:00

24 lines
No EOL
408 B
C++

#pragma once
#include "Path.hpp"
#include "DirectoryTree.hpp"
#include <sstream>
class FileSystem {
public:
FileSystem();
~FileSystem();
bool makeDirectory(const Path& path);
bool changeCurrent(const Path& path);
bool removeDirectory(const Path& path);
void log() const;
const std::string& getLastError();
private:
Directory* root = nullptr;
Directory* currentDirectory = nullptr;
};