'Called when a scan operation is complete
@param dirs {set of unicode} The directories that were intially
requested to be scanned (as pass in onScanStarted)
@param scanned {set of unicode} Directories which were successfully
scanned.  This may be a subset of dirs if the scan was
aborted.'

def onScanComplete(self, dirs=set(), scanned=set()):

    self.debug('scan    complete:    scanned    %r/%r    dirs', len(scanned), len(dirs))
    for dir_path in dirs:
        self._dirs[dir_path] -= 1
        if (not self._dirs[dir_path]):
            del self._dirs[dir_path]
            self._completed_dirs.discard(dir_path)
    self.send(type='scan-progress', completed=len(self._completed_dirs), total=len(self._dirs))
