From db73e2d3d7e3de02f508982cfe607d5e4cabae24 Mon Sep 17 00:00:00 2001 From: Joinyy Date: Wed, 11 Mar 2026 14:10:28 +0100 Subject: [PATCH] Fix #480 by checking URL scheme in `isabs` --- artifactory.py | 7 +++++++ 1 file changed, 7 insertions(+) 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