utility: creating directories with boost in FileSystem method

This commit is contained in:
Eberhard Graether
2015-12-02 15:23:27 +01:00
parent 7d0b3773e7
commit 35b5e423da
3 changed files with 9 additions and 2 deletions
+5
View File
@@ -159,6 +159,11 @@ bool FileSystem::equivalent(const std::string& pathA, const std::string& pathB)
return boost::filesystem::path(pathA).compare(boost::filesystem::path(pathB)) == 0;
}
void FileSystem::createDirectory(const FilePath& path)
{
boost::filesystem::create_directory(path.str());
}
std::vector<FilePath> FileSystem::getSubDirectories(const FilePath &path)
{
std::vector<FilePath> v;