devopshq / artifactory

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

ArtifactoryPath: fix iterdir with Python 3.11 #433

Closed ktdreyer closed 11 months ago

ktdreyer commented 11 months ago

On Python 3.11, pathlib's iterdir() calls directly to os.listdir(), so it does not go through ArtifactoryAccessor.

Similar to commit 5278d0686671c8dea0401a21c2d40b04d3e0ffb5, override iterdir() so that we call our own ArtifactoryPath implementation.

allburov commented 11 months ago

@ktdreyer thank you!

ktdreyer commented 11 months ago

Thank you for shipping this to PyPI as 0.9.2!