code: def getmtime(self, filepath):
          
          if self.is_ssh(filepath):
              self._check_ftp()
              source = self._get_remote(filepath)
              mtime = self.ftp.stat(source).st_mtime
          else:
              mtime = os.path.getmtime(filepath)
  
          return mtime
docs: Gets the last time that the file was modified.