def run(self):
        while not self.stopEvent.isSet():
            try:
                plug.logger.debug(u"Checking remote folder {}",
                                  self.folder.path)
                # Get a list of the files we know. Check them out as we find
                # them. The remaining are files that were deleted when we
                # weren't looking.
                self.deletedFiles = plug.list(self.folder)
                self.check_directory(".")
                self.delete_removed_files()
            except EscalatorClosed:
                # We are closing
                self.stop()
                return
            except __HOLE__ as ioe:
                plug.logger.error(u"An error occurred while checking remote "
                                  u"folder {}: {}", self.folder.path, ioe)
            plug.logger.debug("Next check in {} seconds", self.timer)
            self.stopEvent.wait(self.timer)
dataset/ETHPy150Open onitu/onitu/drivers/sftp/onitu_sftp/sftp.py/CheckChanges.run