Skip to content
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

fix: push_path and pull_path include empty directories #1024

Merged
merged 6 commits into from
Oct 4, 2023

Conversation

tonyandrewmeyer
Copy link
Contributor

Instead of just recursively iterating through the remote/local files, also iterate through the directories as well, ensuring that they are created even if they don't contain any files.

Also create/update relevant test cases.

Fixes #968

Instead of just recursively iterating through the remote/local files, also iterate through the directories as well, ensuring that they are created even if they don't contain any files.
@tonyandrewmeyer tonyandrewmeyer added the bug Something isn't working label Oct 2, 2023
Copy link
Collaborator

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks! Just one super-nit comment.

ops/model.py Show resolved Hide resolved
test/test_model.py Outdated Show resolved Hide resolved
test/test_testing.py Show resolved Hide resolved
@benhoyt benhoyt merged commit 942bd23 into canonical:main Oct 4, 2023
20 checks passed
@tonyandrewmeyer tonyandrewmeyer deleted the pull-path-empty-dir-968 branch October 4, 2023 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pull_path doesn't retrieve empty directories
3 participants