Skip to content

Commit 420b074

Browse files
Brian Lukconst-cloudinary
authored andcommitted
Normalize folder name when querying resources
1 parent f3c948a commit 420b074

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cloudinary_cli/utils/api_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
def query_cld_folder(folder):
1616
files = {}
1717
next_cursor = True
18+
19+
folder = folder.rstrip('/')
20+
1821
expression = Search().expression(f"folder:{folder}/*").with_field("image_analysis").max_results(500)
1922
while next_cursor:
2023
res = expression.execute()

0 commit comments

Comments
 (0)