Play-/Source/PathUtils.cpp
jpd002 ebd2df89b9 MacOSX
git-svn-id: http://svn.purei.org/purei/trunk@209 b36208d7-6611-0410-8bec-b1987f11c4a2
2007-12-27 20:35:09 +00:00

26 lines
No EOL
511 B
C++

#include "PathUtils.h"
#include <boost/filesystem/operations.hpp>
using namespace boost;
using namespace std;
/*
namespace Framework
{
namespace PathUtils
{
void EnsurePathExists(const filesystem::path& path)
{
filesystem::path buildPath;
for(filesystem::path::iterator pathIterator(path.begin());
pathIterator != path.end(); pathIterator++)
{
buildPath /= (*pathIterator);
if(!filesystem::exists(buildPath))
{
filesystem::create_directory(buildPath);
}
}
}
}
}
*/