f METHOD_NAME(self, s):
    fileInfo = self.dirmodel.fileInfo(s)
    if fileInfo.isDir():
          self.changeDir(fileInfo.absoluteFilePath())
          return
    fname = str(fileInfo.absoluteFilePath()) # if not str() around it crashes!
    self.putPart(fname)