mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-13 15:28:27 +01:00
handle paths ending with sep in dvc.fs.path.Path.parts
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
a3144482ba
commit
05b5e9dc29
+1
-1
@@ -15,7 +15,7 @@ class Path:
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user