Hymn to Beauty
C++ 3D Engine
FileSystem.hpp File Reference
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  FileSystem
 Functionality to interact with the file system.
 

Functions

bool FileSystem::FileExists (const char *filename)
 Check if a file exists. More...
 
void FileSystem::Copy (const char *source, const char *destination)
 Copy a file. More...
 
void FileSystem::CreateDirectory (const char *filename)
 Create a directory if it does not already exist. More...
 
bool FileSystem::DeleteDirectory (const char *filename)
 Delete a directory if it is empty. More...
 
std::vector< std::string > FileSystem::DirectoryContents (const std::string &directoryName, unsigned int type=FILE|DIRECTORY)
 Get all the contents of a directory. More...
 
std::string FileSystem::DataPath (const char *appName)
 Get save path for application data folder. More...
 
std::string FileSystem::DataPath (const char *appName, const char *filename)
 Get save path for application data. More...
 
std::string FileSystem::GetParentDirectory (const std::string &path)
 Get the parent directory of a path. More...
 
std::string FileSystem::GetExtension (const std::string &filename)
 Get the extension part of a filename. More...
 
std::string FileSystem::GetName (const std::string &filepath)
 Get the name of the file without the extension. More...
 
std::string FileSystem::GetDirectory (const std::string &path)
 Get the directory part for a path (including the final delimiter). More...
 
void FileSystem::ExecuteProgram (const std::string &path, const std::string &arguments)
 Execute a program asynchronously. More...