added parameter to disallow hashing files which time is in the future (as they severely perturbate the synchronisation process)

This commit is contained in:
csoler 2016-11-16 21:49:27 +01:00
parent 6272856b5e
commit ba78007cf1
3 changed files with 12 additions and 4 deletions

View file

@ -141,7 +141,7 @@ void LocalDirectoryUpdater::recursUpdateSharedDir(const std::string& cumulated_p
// make sure list of subfiles is the same
// request all hashes to the hashcache
librs::util::FolderIterator dirIt(cumulated_path,false);
librs::util::FolderIterator dirIt(cumulated_path,false,false); // disallow symbolic links and files from the future.
time_t dir_local_mod_time ;
if(!mSharedDirectories->getDirectoryLocalModTime(indx,dir_local_mod_time))