mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
fs: path: use flavour.basename
This commit is contained in:
@@ -80,7 +80,7 @@ class Path:
|
||||
)
|
||||
|
||||
def name(self, path):
|
||||
return self.parts(path)[-1]
|
||||
return self.flavour.basename(path)
|
||||
|
||||
def suffix(self, path):
|
||||
name = self.name(path)
|
||||
|
||||
Reference in New Issue
Block a user