diff --git a/artifactory.py b/artifactory.py index 470d594..520bcdf 100755 --- a/artifactory.py +++ b/artifactory.py @@ -587,6 +587,13 @@ def make_uri(self, path): """ return path + def isabs(self, path): + """ + Returns True if the path is absolute. For Artifactory paths, this + means checking the URL scheme. + """ + return urllib.parse.urlparse(str(path)).scheme != "" + def normcase(self, path): return path