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 --pull
1 parent 58c186e commit ff73c4aCopy full SHA for ff73c4a
cloudinary_cli/utils/api_utils.py
@@ -14,11 +14,13 @@
14
15
def query_cld_folder(folder):
16
files = {}
17
- next_cursor = True
18
19
- folder = folder.rstrip('/')
+ folder = folder.strip('/') # omit redundant leading slash and duplicate trailing slashes in query
+ folder_query = f"{folder}/*" if folder else "*"
20
+
21
+ expression = Search().expression(f"folder:\"{folder_query}\"").with_field("image_analysis").max_results(500)
22
- expression = Search().expression(f"folder:\"{folder}/*\"").with_field("image_analysis").max_results(500)
23
+ next_cursor = True
24
while next_cursor:
25
res = expression.execute()
26
0 commit comments