Skip to content

Commit

Permalink
Add follow_symlinks argument to ArtifactoryPath.is_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
zhan9san committed Feb 6, 2024
1 parent 2e92742 commit e4aaf76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion artifactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1887,10 +1887,12 @@ def creator(self):
"""
return self._accessor.creator(self)

def is_dir(self):
def is_dir(self, follow_symlinks=False):
"""
Whether this path is a directory.
"""
if follow_symlinks:
raise TypeError('Artifactory does not have symlink feature')
return self._accessor.is_dir(self)

def is_file(self):
Expand Down

0 comments on commit e4aaf76

Please sign in to comment.