Skip to content

Commit

Permalink
check if needed drv, root initial creation
Browse files Browse the repository at this point in the history
  • Loading branch information
liormizr committed Nov 9, 2024
1 parent 602e9c1 commit 719a453
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions s3path/current_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,6 @@ def __init__(self, *args):
new_parts.remove(part)

self._raw_paths = new_parts
self._drv, self._root, self._tail_cached = self._parse_path(self._raw_path)

def _load_parts(self):
paths = self._raw_paths
if len(paths) == 0:
path = ''
elif len(paths) == 1:
path = paths[0]
else:
path = self._flavour.join(*paths)
drv, root, tail = self._parse_path(path)
self._drv = drv
self._root = root
self._tail_cached = tail

@classmethod
def from_uri(cls, uri: str):
Expand Down

0 comments on commit 719a453

Please sign in to comment.