def check_pack_content_directory_exists(pack, content_type):
    packs_base_paths = get_packs_base_paths()

    for base_dir in packs_base_paths:
        pack_content_pack = os.path.join(base_dir, pack, content_type)
        if os.path.exists(pack_content_pack):
            return True

    return False
Check if a provided pack exists in one of the pack paths.
dataset/ETHPy150Open StackStorm/st2/st2common/st2common/content/utils.py/check_pack_content_directory_exists