From e4aaf763dc1cad3459f3ecd4288b35396fcbd0fb Mon Sep 17 00:00:00 2001 From: Jack Zhang Date: Tue, 6 Feb 2024 15:43:42 +0800 Subject: [PATCH 1/2] 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): From 5227364a68876848b125d79b9996053fe8a4d994 Mon Sep 17 00:00:00 2001 From: Jack Zhang Date: Thu, 8 Feb 2024 12:38:58 +0800 Subject: [PATCH 2/2] add follow_synlinks --- artifactory.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/artifactory.py b/artifactory.py index 0e71e2e..3d2fa7a 100755 --- a/artifactory.py +++ b/artifactory.py @@ -1887,12 +1887,10 @@ def creator(self): """ return self._accessor.creator(self) - def is_dir(self, follow_symlinks=False): + def is_dir(self, *, follow_symlinks=True): """ 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):