#define _WRT_UTILITY_H_
#include <sys/stat.h>
+#include <dpl/availability.h>
/**
* Joins two paths into one
*/
void WrtUtilJoinPaths(std::string &joined,
const std::string &parent,
- const std::string &child);
+ const std::string &child)
+ DPL_DEPRECATED_WITH_MESSAGE("Use boost::filesystem::path concatenation method instead");
/**
* Creates directories specified by path
* several nested directories, you must make sure that the mode flag allows you
* to write and search the direcotries you create.
*/
-bool WrtUtilMakeDir(const std::string &newpath, mode_t mode = 0755);
+bool WrtUtilMakeDir(const std::string &newpath, mode_t mode = 0755)
+DPL_DEPRECATED_WITH_MESSAGE("Use boost::filesystem::create_directories with boost::filesystem::permissions() instead");
/**
* This function removes the directory or file pointed to by path
*
* @return true on success, false otherwise
*/
-bool WrtUtilRemove(const std::string &path);
+bool WrtUtilRemove(const std::string &path) DPL_DEPRECATED_WITH_MESSAGE("Use boost::filesystem::remove_all instead");
/**
* Checks if path exists and is a regular file
*
* @return true if regular file is accessible under path, false otherwise
*/
-bool WrtUtilFileExists(const std::string &path);
+bool WrtUtilFileExists(const std::string &path) DPL_DEPRECATED_WITH_MESSAGE("Use boost::filesystem::exists() instead");
/**
* Checks if path exists and is a directory
*
* @return true if directory is accessible under path, false otherwise
*/
-bool WrtUtilDirExists(const std::string &path);
+bool WrtUtilDirExists(const std::string &path) DPL_DEPRECATED_WITH_MESSAGE("Use boost::filesystem::exists() instead");
#endif //_WRT_UTILITY_H_