s3: support for directories#2619
Merged
Conversation
efiop
reviewed
Oct 18, 2019
Suor
suggested changes
Oct 22, 2019
Contributor
Suor
left a comment
There was a problem hiding this comment.
Also, there is no tests here.
added 12 commits
October 22, 2019 22:02
efiop
reviewed
Oct 23, 2019
efiop
reviewed
Oct 23, 2019
efiop
reviewed
Oct 23, 2019
efiop
reviewed
Oct 23, 2019
efiop
reviewed
Oct 23, 2019
efiop
reviewed
Oct 23, 2019
|
|
||
|
|
||
| def test_isdir(s3, remote): | ||
| assert remote.isdir(remote.path_info / "data") |
Contributor
There was a problem hiding this comment.
you could totally use parametrize here instead of copypasting. 🙂
Author
There was a problem hiding this comment.
Interesting, parametrize is 1 and a half second slower 😓
Contributor
There was a problem hiding this comment.
@MrOutis this is because all the fixtures are rebuilt every time. Use for loop inside single test instead. Moreover, I would reuse the same list for fixture and tests as far as that is possible.
efiop
reviewed
Oct 23, 2019
efiop
reviewed
Oct 24, 2019
efiop
reviewed
Oct 24, 2019
Contributor
|
@MrOutis Tests are still failing on py2 due to unicode error. Just a heads up 🙂 |
1 task
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix: #1654
Setup:
Notes:
head_objectdoesn't work with directories, only empty oneslist_objectsdoesn't work with empty directoriesaws s3 cpdoesn't work with directories, you need to use--recursivedvc run -d remote://doesn't look up if cache is setup (as-o), but directories uses cacheTODO:
walkimplementation towalk_files