We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sync
1 parent e96dae3 commit ee7c55bCopy full SHA for ee7c55b
cloudinary_cli/utils/api_utils.py
@@ -25,9 +25,10 @@ def query_cld_folder(folder, folder_mode):
25
files = {}
26
27
folder = folder.strip('/') # omit redundant leading slash and duplicate trailing slashes in query
28
+ folder_key = "asset_folder" if folder_mode == "dynamic" else "folder"
29
folder_query = f"{folder}/*" if folder else "*"
30
- expression = Search().expression(f"folder:\"{folder_query}\"").with_field("image_analysis").max_results(500)
31
+ expression = Search().expression(f"{folder_key}:\"{folder_query}\"").with_field("image_analysis").max_results(500)
32
33
next_cursor = True
34
while next_cursor:
0 commit comments