def check_regular_file(self, path, regFile):
        """Compares the modification time Onitu has for this file and its
        actual modification time. If the latter is more recent, triggers an
        update."""
        filePath = regFile.filename
        if path != ".":
            filePath = "{}/{}".format(path, filePath)
        plug.logger.debug(u"Checking regular file {}", filePath)
        metadata = plug.get_metadata(filePath, self.folder)
        onitu_mtime = metadata.extra.get('mtime', 0)
        if regFile.st_mtime > onitu_mtime:
            plug.logger.debug(u"Updating {}", filePath)
            metadata.size = regFile.st_size
            if metadata.path not in events_to_ignore:
                update_metadata(metadata, regFile.st_mtime,
                                update_file=True)
            else:
                plug.logger.debug(u"File {} is in transfer - skipped",
                                  metadata.path)
        else:
            plug.logger.debug(u"File {} is up-to-date", filePath)
        # Cross this file out from the deleted files list
        if filePath in self.deletedFiles:
            del self.deletedFiles[filePath]
dataset/ETHPy150Open onitu/onitu/drivers/sftp/onitu_sftp/sftp.py/CheckChanges.check_regular_file/original