27 #ifndef __RADAR_IO_HPP__
28 #define __RADAR_IO_HPP__
54 static bool fileExists (
const std::string& path);
60 static bool dirExists (
const std::string& path);
66 static void changeDir (
const std::string& path);
71 static std::string getCurrentDir ();
78 static void mkDirTree (
const std::string& path);
84 static void rmDirTree (
const std::string& path);
92 static void listFiles(std::vector<std::string>& result,
const std::string& path,
bool completePath =
false);
100 static void listDirs(std::vector<std::string>& result,
const std::string& path,
bool completePath =
false);
106 static void createFile(
const std::string& path);
113 static void createFile(
const std::string& path,
const std::string& msg);
117 static size_t getFileSize(
const std::string& path);
133 static std::string getBasePath(
const std::string& path);
139 static std::string getFileName(
const std::string& path);
145 static std::string getFileExt(
const std::string& path);
152 static std::string changeExt(
const std::string& path,
const std::string& newext);
158 static std::string removeExt(
const std::string& path);
FileSystem class.
Definition: io.hpp:46
File path manipulation routines.
Definition: io.hpp:125