Skip to content

Conversation

@jonburdo
Copy link
Contributor

@jonburdo jonburdo commented Jan 6, 2022

Fixes #7228

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

@jonburdo jonburdo requested a review from a team as a code owner January 6, 2022 16:34
@jonburdo jonburdo requested a review from efiop January 6, 2022 16:34

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a simple unit test for this? (e.g. create tests/unit/fs/test_path.py for it) This module is kinda experimental, but since we are fixing such things already, it would be great to keep track of them.

Copy link
Contributor

@efiop efiop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! πŸ™

@efiop efiop merged commit 634246f into treeverse:main Jan 7, 2022
@jonburdo jonburdo deleted the fix-path-parts-with-final-sep branch January 7, 2022 20:32
@efiop efiop added the bugfix fixes bug label Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix fixes bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dvc.fs.Path.parts wrong results

2 participants