I have artifacts with capitalize and non-capitalize names. When I'm using glob to search artifacts with capitalize names, it returns all of them. But I expect only capitalized.
Example:
# My artifactory:
# /aaa/file_1.txt
# /aaa/file_2.txt
# /aaa/FILE_3.txt
for p in ArtifactoryPath('aaa').glob('FILE*'):
print(p)
# Real Out:
# /aaa/file_1.txt
# /aaa/file_2.txt
# /aaa/FILE_3.txt
#
# My expectation:
# /aaa/FILE_3.txt
It happens because compile_pattern function contain next code:
I have artifacts with capitalize and non-capitalize names. When I'm using
glob
to search artifacts with capitalize names, it returns all of them. But I expect only capitalized.Example:
It happens because compile_pattern function contain next code:
to fix it should be next: