Go to the documentation of this file.
28 #include <boost/filesystem.hpp>
30 namespace fs = boost::filesystem;
37 void init(
const char *argv0);
43 bool setWriteDir(
const std::string& writeDir,
bool create =
false);
45 bool addSearchPath(
const std::string& path,
bool pushFront =
false);
53 void readFileStream(
const std::string& fileName, std::iostream& out);
66 bool makeDir(
const std::string directory);
68 std::vector<std::string>
getDirectoryFiles(
const std::string& path,
bool filenameOnly,
bool recursive);
71 std::string
getRealDir(
const std::string& path);
79 std::string
guessFilePath(
const std::string& filename,
const std::string& type);
80 bool isFileType(
const std::string& filename,
const std::string& type);
84 std::vector<std::string>
discoverPath(
const fs::path& path,
bool filenameOnly,
bool recursive);
87 std::string m_workDir;
88 std::string m_writeDir;
89 std::deque<std::string> m_searchPaths;
bool isFileType(const std::string &filename, const std::string &type)
std::list< std::string > listDirectoryFiles(const std::string &directoryPath="")
bool writeFileStream(const std::string &fileName, std::iostream &in)
bool removeSearchPath(const std::string &path)
std::string getRealPath(const std::string &path)
std::string getRealDir(const std::string &path)
bool directoryExists(const std::string &directoryName)
FileStreamPtr appendFile(const std::string &fileName)
std::string resolvePath(const std::string &path)
std::vector< std::string > getDirectoryFiles(const std::string &path, bool filenameOnly, bool recursive)
void init(const char *argv0)
bool setupUserWriteDir(const std::string &appWriteDirName)
ticks_t getFileTime(const std::string &filename)
bool fileExists(const std::string &fileName)
void searchAndAddPackages(const std::string &packagesDir, const std::string &packageExt)
bool makeDir(const std::string directory)
FileStreamPtr openFile(const std::string &fileName)
std::string readFileContents(const std::string &fileName)
bool addSearchPath(const std::string &path, bool pushFront=false)
bool deleteFile(const std::string &fileName)
std::deque< std::string > getSearchPaths()
void readFileStream(const std::string &fileName, std::iostream &out)
ResourceManager g_resources
std::string getWriteDir()
std::vector< std::string > discoverPath(const fs::path &path, bool filenameOnly, bool recursive)
bool writeFileContents(const std::string &fileName, const std::string &data)
bool setWriteDir(const std::string &writeDir, bool create=false)
bool writeFileBuffer(const std::string &fileName, const uchar *data, uint size)
FileStreamPtr createFile(const std::string &fileName)
bool discoverWorkDir(const std::string &existentFile)
std::string guessFilePath(const std::string &filename, const std::string &type)