Lua: Add FS.Remove, FS.Rename (move), FS.Copy, FS.Exists

This commit is contained in:
Lion Kortlepel
2021-09-20 00:36:22 +02:00
parent 4de80e0c7a
commit 6f9f790c5b
4 changed files with 73 additions and 13 deletions

View File

@@ -23,4 +23,11 @@ namespace MP {
void Sleep(size_t Ms);
void PrintRaw(sol::variadic_args);
}
namespace FS {
std::pair<bool, std::string> CreateDirectory(const std::string& Path);
std::pair<bool, std::string> Remove(const std::string& Path);
std::pair<bool, std::string> Rename(const std::string& Path, const std::string& NewPath);
std::pair<bool, std::string> Copy(const std::string& Path, const std::string& NewPath);
bool Exists(const std::string& Path);
}
}