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

Support multiplexed descendants in MultiplexedPath. #278

Merged
merged 5 commits into from
Feb 17, 2023

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented Feb 5, 2023

  • Add test for MultiplexedPath.joinpath with common subdirs
  • In MultiplexedPath.iterdir, honor multiple subdirectories of the same name.
  • Prefer tee and only.

Builds on #272. Fixes #265.

@jaraco
Copy link
Member Author

jaraco commented Feb 6, 2023

@jooste Let me know what you think about this implementation.

@jaraco jaraco merged commit 5d9fb42 into main Feb 17, 2023
@jaraco jaraco deleted the bugfix/multiplexed-descendants branch February 17, 2023 18:12
@jooste
Copy link
Contributor

jooste commented Feb 23, 2023

Hi @jaraco,

Apologies for replying late! Looking at your code, if I understand correctly you basically moved the detection of common subdirectories (and creation of MultiplexedPaths from them) to iterdir(). I think it's a really nice solution, but I guess that's why you already merged it :)

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.

MultiplexedPath only traverses first directory
2 participants