- else:
- urlpath, newdir = self.db.storeFile(file, result.digest(), self.scanning[0])
- url = None
- if newdir:
- self.manager.setDirectories(self.db.getAllDirectories())
- df = self.manager.new_cached_file(file, result, urlpath, url)
+ new_hash = self.db.storeFile(file, result.digest())
+ df = self.manager.new_cached_file(file, result, new_hash, url, True)