#ifdef _WIN32 // WINDOWS
#define DIR_DELIM "\\"
+#define DIR_DELIM_CHAR '\\'
#define FILESYS_CASE_INSENSITIVE 1
+#define PATH_DELIM ";"
#else // POSIX
#define DIR_DELIM "/"
+#define DIR_DELIM_CHAR '/'
#define FILESYS_CASE_INSENSITIVE 0
+#define PATH_DELIM ":"
#endif
namespace fs
// this does not resolve symlinks and check for existence of directories.
std::string RemoveRelativePathComponents(std::string path);
+// Returns the absolute path for the passed path, with "." and ".." path
+// components and symlinks removed. Returns "" on error.
+std::string AbsolutePath(const std::string &path);
+
+// Returns the filename from a path or the entire path if no directory
+// delimiter is found.
+const char *GetFilenameFromPath(const char *path);
+
bool safeWriteToFile(const std::string &path, const std::string &content);
-}//fs
+bool Rename(const std::string &from, const std::string &to);
+
+} // namespace fs
#endif