code: def get_index(self, filename):
          
          index = self.fsmodel.index(filename)
          if index.isValid() and index.model() is self.fsmodel:
              return self.proxymodel.mapFromSource(index)
docs: Return index associated with filename