'Follow directories loaded during startup'

def follow_directories_loaded(self, fname):

    if (self._to_be_loaded is None):
        return
    path = osp.normpath(to_text_string(fname))
    if (path in self._to_be_loaded):
        self._to_be_loaded.remove(path)
    if ((self._to_be_loaded is not None) and (len(self._to_be_loaded) == 0) and (not is_pyqt46)):
        self.fsmodel.directoryLoaded.disconnect(self.follow_directories_loaded)
        if (self._scrollbar_positions is not None):
            QTimer.singleShot(50, self.restore_scrollbar_positions)
