devopshq / artifactory

dohq-artifactory: a Python client for Artifactory
https://devopshq.github.io/artifactory/
MIT License
273 stars 144 forks source link

Listing directory too slow #423

Open retzero opened 1 year ago

retzero commented 1 year ago

Hello.

I have total 373 files in my artifactory path, and below example code spend more than 3 seconds. 😭

path = ArtifactoryPath("http://repo.jfrog.org/artifactory/distributions/org/")

for p in path.glob("**/*.gz"):
    print(p)

But the official listing API returns immediately. (in a milli seconds) https://jfrog.com/help/r/jfrog-rest-apis/file-list

Can you please improve the performance for the basic file listing call?

allburov commented 1 year ago

Hi! We're open for pull requests!