#include <creaImageIOSynchron.h>
#include <creaImageIOSystem.h>
#include <boost/filesystem.hpp>
+#include <boost/algorithm/string.hpp>
+//namespace fs = boost::filesystem;
-namespace fs = boost::filesystem;
//=====================================================================
//=====================================================================
void Synchronizer::Initialize()
{
- if (!fs::exists(pathDB))
+ if (!boost::filesystem::exists(pathDB))
{
CreateDB();
}
bool Synchronizer::isIndexed(const std::string filename)
{
bool valid = true;
+ std::string name(filename);
+ boost::algorithm::replace_all( name,"\\" , "/");
std::map <std::string, bool>::iterator it_list = mList.begin();
for(;it_list != mList.end(); it_list++)
{
- if(it_list->first == filename)
+ if(it_list->first == name)
{
valid = false;
break;