Skip to content

Commit

Permalink
handle paths ending with sep in dvc.fs.path.Path.parts
Browse files Browse the repository at this point in the history
  • Loading branch information
jonburdo authored and efiop committed Jan 7, 2022
1 parent a314448 commit 05b5e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/fs/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def join(self, *parts):
return self.flavour.join(*parts)

def parts(self, path):
drive, path = self.flavour.splitdrive(path)
drive, path = self.flavour.splitdrive(path.rstrip(self.flavour.sep))

ret = []
while True:
Expand Down

0 comments on commit 05b5e9d

Please sign in to comment.