ArkScript
A small, fast, functional and scripting language for video games
Files.hpp File Reference

Lots of utilities about the filesystem. More...

#include <string>
#include <fstream>
#include <streambuf>
#include <filesystem>
+ Include dependency graph for Files.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Ark
 
 Ark::Utils
 

Functions

bool Ark::Utils::fileExists (const std::string &name) noexcept
 Checks if a file exists. More...
 
std::string Ark::Utils::readFile (const std::string &name)
 Helper to read a file. More...
 
std::string Ark::Utils::getDirectoryFromPath (const std::string &path)
 Get the directory from a path. More...
 
std::string Ark::Utils::getFilenameFromPath (const std::string &path)
 Get the filename from a path. More...
 
std::string Ark::Utils::canonicalRelPath (const std::string &path)
 Get the canonical relative path from a path. More...
 

Detailed Description

Lots of utilities about the filesystem.

Author
Alexandre Plateau (lexpl.nosp@m.t.de.nosp@m.v@gma.nosp@m.il.c.nosp@m.om)
Version
0.1
Date
2021-11-25

Definition in file Files.hpp.