Skip to content

RepoTree: preserve relative paths in copytree() #4133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

pmrowla
Copy link
Contributor

@pmrowla pmrowla commented Jun 30, 2020

Partial fix for #4131 (resolves the dvc get bug only).

  • ❗ I have followed the Contributing to DVC checklist.

  • πŸ“– If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

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

@pmrowla pmrowla self-assigned this Jun 30, 2020
for fname in files:
src = root / fname
with self.open(src, mode="rb") as fobj:
copy_fobj_to_file(fobj, dest / fname)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dest here was the top level destination path, rather than the expected relative path

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, I should not have removed that without thinking once. My bad.

@pmrowla pmrowla requested review from skshetry, efiop and pared June 30, 2020 05:28
@pmrowla pmrowla merged commit c6a024f into iterative:master Jun 30, 2020
@pmrowla pmrowla deleted the 4131-get-directory branch June 30, 2020 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants