Gorgon Game Engine
Filesystem.cpp File Reference
Include dependency graph for Filesystem.cpp:

Namespaces

 Gorgon
 Root namespace for Gorgon Game Engine.
 
 Gorgon::Filesystem
 Contains filesystem functions.
 

Functions

std::string GetExtension (std::string path)
 Returns the extension of the given path, also converts the extension to lower case. More...
 
void Initialize ()
 Initializes the filesystem module. More...
 
std::string Load (const std::string &filename)
 Loads the given file and returns it in a string form. More...
 
std::string Relative (std::string path, std::string base=".")
 Determine shortest relative path from the given path. More...
 
bool Save (const std::string &filename, const std::string &data, bool append=false)
 Saves a given data into the filename. More...
 
unsigned long long Size (const std::string &filename)
 Returns the size of the given file. More...
 
std::string StartupDirectory ()
 Returns the directory where the program is started from. More...