ArkScript
A small, fast, functional and scripting language for video games
|
Lots of utilities about the filesystem. More...
#include <string>
#include <fstream>
#include <streambuf>
#include <filesystem>
Go to the source code of this file.
Namespaces | |
namespace | Ark |
namespace | Ark::Utils |
Functions | |
bool | Ark::Utils::fileExists (const std::string &name) noexcept |
Checks if a file exists. | |
std::string | Ark::Utils::readFile (const std::string &name) |
Helper to read a file. | |
std::string | Ark::Utils::getDirectoryFromPath (const std::string &path) |
Get the directory from a path. | |
std::string | Ark::Utils::getFilenameFromPath (const std::string &path) |
Get the filename from a path. | |
std::string | Ark::Utils::canonicalRelPath (const std::string &path) |
Get the canonical relative path from a path. | |
Lots of utilities about the filesystem.
Definition in file Files.hpp.