From e4aaf763dc1cad3459f3ecd4288b35396fcbd0fb Mon Sep 17 00:00:00 2001 From: Jack Zhang Date: Tue, 6 Feb 2024 15:43:42 +0800 Subject: [PATCH] Add follow_symlinks argument to ArtifactoryPath.is_dir --- artifactory.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artifactory.py b/artifactory.py index 4325018..0e71e2e 100755 --- a/artifactory.py +++ b/artifactory.py @@ -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):