def METHOD_NAME(monitor_directory):
    while True:
        files = [
            os.path.abspath(os.path.join(monitor_directory, f))
                for f in os.listdir(monitor_directory)
                    if os.path.isfile(os.path.join(monitor_directory, f))
                ]
        for file_path in files:
            fm = FileMonitor(file_path)
            fm.link_file()
            fm.expire_files()
        keep_dir = os.path.join(monitor_directory, KEEP_DIRECTORY)
        if not os.path.isdir(keep_dir):
            os.mkdir(keep_dir)
        inodes = os.listdir(keep_dir)
        for inode in inodes:
            file = os.listdir(os.path.join(keep_dir, inode))[0]
            path = os.readlink(os.path.join(keep_dir, inode, file))
            if not os.path.isfile(path):
                log.info(f'Removing symlink to non-existing file: {inode}')
                shutil.rmtree(os.path.join(keep_dir, inode))
        time.sleep(0.2)