bool valid = mSynchronizer->isIndexed(itr->string());//true;//=mTimestampHandler->AddDirectory(dirpath, itr->string(), lastModif, time(0),mCurrentDB);
if(valid)
{
-
+ std::string path(itr->string());
mProgress.IncNumberScannedFiles();
- boost::algorithm::replace_all( itr->string(),
- INVALID_FILE_SEPARATOR ,
- VALID_FILE_SEPARATOR);
+ boost::algorithm::replace_all( path,INVALID_FILE_SEPARATOR,VALID_FILE_SEPARATOR);
i_sc.ReadAttributes(itr->string(),attr);
// mTreeHandler->GetTopLevelNodeId("FullFileName",itr->string(),parent_id);
mTreeHandler->AddBranch(attr);
mProgress.IncNumberHandledFiles();
std::stringstream removedOn;
removedOn<<time(0);
- mSynchronizer->InsertIgnoreFile(addKey, itr->string(),"0",removedOn.str(),mCurrentDB);
+ mSynchronizer->InsertIgnoreFile(addKey, path,"0",removedOn.str(),mCurrentDB);
mProgressSignal(mProgress);