mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-29 06:07:56 +03:00
26 lines
511 B
C++
26 lines
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);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
*/
|