'Sets folders\' atime back to their values after a sync
Controlled by the \'restoreatime\' config parameter.'

def restore_atime(self):

    if (not self.getconfboolean('restoreatime', False)):
        return
    for (dirpath, new_atime, cur_atime) in self.folder_atimes:
        new_dir = os.path.join(dirpath, 'new')
        cur_dir = os.path.join(dirpath, 'cur')
        os.utime(new_dir, (new_atime, os.path.getmtime(new_dir)))
        os.utime(cur_dir, (cur_atime, os.path.getmtime(cur_dir)))
