'Walks through the torrent collecting directory and gets the total number of file.'

def _get_total_file_count(self):

    self.status_update_func(u'Scanning    torrent    directory.    This    may    take    a    while    if    you    have    a    big    torrent    collection...')
    for (root, _, files) in os.walk(self.torrent_collecting_dir):
        for name in files:
            if (name.endswith(u'.mbinmap') or name.endswith(u'.mhash') or name.startswith(u'tmp_')):
                self.total_swift_file_count += 1
            else:
                self.total_torrent_file_count += 1
            self.total_file_count += 1
            self.status_update_func((u'Getting    file    count:    %s...' % self.total_file_count))
        break
