Skip to content

Commit

Permalink
upath._flavour: use os.path for local_file in isabs
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Feb 25, 2024
1 parent 45f1813 commit b5968dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion upath/_flavour.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ def altsep(self) -> str | None:
return None

def isabs(self, path: PathOrStr) -> bool:
return self.strip_protocol(path).startswith(self.root_marker)
path = self.strip_protocol(path)
if self.local_file:
return os.path.isabs(path)
else:
return path.startswith(self.root_marker)

def join(self, path: PathOrStr, *paths: PathOrStr) -> str:
if self.supports_empty_parts:
Expand Down

0 comments on commit b5968dd

Please sign in to comment.