Skip to content

Commit 7160ef7

Browse files
ktdreyerallburov
authored andcommitted
ArtifactoryPath: fix iterdir with Python 3.11
On Python 3.11, pathlib's iterdir() calls directly to os.listdir(), so it does not go through ArtifactoryAccessor. Similar to commit 5278d06, override iterdir() so that we call our own ArtifactoryPath implementation.
1 parent ec2743e commit 7160ef7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

artifactory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,8 @@ def __iter__(self):
18111811
continue
18121812
yield self._make_child_relpath(name)
18131813

1814+
iterdir = __iter__
1815+
18141816
def read_text(self, encoding=None, errors=None):
18151817
"""
18161818
Read file content

0 commit comments

Comments
 (0)