def __init__(self, folder, sftpClient, timer):
        super(CheckChanges, self).__init__()
        self.stopEvent = threading.Event()
        self.folder = folder
        self.sftp = sftpClient
        self.timer = timer
        self.deletedFiles = {}  # useful for deletion detection
        dirPath = folder.path
        if not dirPath.endswith(u"/"):
            dirPath += u"/"
        # Get in the right folder
        try:
            create_file_subdirs(self.sftp, dirPath)
            plug.logger.debug(u"Changing directory to {}", dirPath)
            self.sftp.chdir(dirPath)
        except __HOLE__ as e:
            raise ServiceError(u"Unable to chdir into {}: {}"
                               .format(dirPath, e))
dataset/ETHPy150Open onitu/onitu/drivers/sftp/onitu_sftp/sftp.py/CheckChanges.__init__