Class FileSystem
Defined in File FileSystem.h
Class Documentation
-
class FileSystem
This class implements different file system functions.
Public Static Functions
-
static inline std::string getFilePath(const std::string &path)
-
static inline std::string getFileName(const std::string &path)
-
static inline std::string getFileNameWithExt(const std::string &path)
-
static inline std::string getFileExt(const std::string &path)
-
static inline bool isRelativePath(const std::string &path)
-
static inline int makeDir(const std::string &path)
-
static inline int makeDirs(const std::string &path)
Make all subdirectories.
-
static inline std::string normalizePath(const std::string &path)
-
static inline bool fileExists(const std::string &fileName)
-
static inline std::string getProgramPath()
-
static inline bool copyFile(const std::string &source, const std::string &dest)
-
static inline bool isFile(const std::string &path)
-
static inline bool isDirectory(const std::string &path)
-
static inline bool getFilesInDirectory(const std::string &path, std::vector<std::string> &res)
-
static inline std::string getFileMD5(const std::string &filename)
Compute the MD5 hash of a file.
-
static inline bool writeMD5File(const std::string &fileName, const std::string &md5File)
Write the MD5 hash of a file to the md5File.
-
static inline bool checkMD5(const std::string &md5Hash, const std::string &md5File)
Compare an MD5 hash with the hash stored in an MD5 file.
-
static inline std::string getFilePath(const std::string &path)