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

Files walk order #2756

Merged
merged 10 commits into from
Dec 18, 2021
Merged

Files walk order #2756

merged 10 commits into from
Dec 18, 2021

Conversation

SystemFw
Copy link
Collaborator

Changes the behaviour of walk to emit files in the order it visits them, which in turn enables streaming copy since it lets you create folders before copying the files they contain, which is a prerequisite for copy.
The behaviour of walk in main is arguably a regression since it behaves differently from NIO.walk, which it used to wrap, so I'm targetting main with a straight change, rather than a new method or a flag.

@SystemFw SystemFw marked this pull request as draft December 17, 2021 00:59
@SystemFw SystemFw marked this pull request as ready for review December 17, 2021 01:02
@SystemFw SystemFw marked this pull request as draft December 17, 2021 01:05
.flatMap { path =>
go(path, maxDepth - 1, attr.fileKey.toRight(start) :: ancestry)
}
.recoverWith { case _ =>
Copy link
Contributor

Choose a reason for hiding this comment

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

mask?

.flatMap { path =>
go(path, maxDepth - 1, attr.fileKey.toRight(start) :: ancestry)
}
.recoverWith { case _ =>
Copy link
Contributor

Choose a reason for hiding this comment

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

mask?

@SystemFw SystemFw marked this pull request as ready for review December 18, 2021 11:17
@SystemFw SystemFw requested a review from mpilquist December 18, 2021 11:17
@mpilquist mpilquist merged commit ee4a187 into typelevel:main Dec 18, 2021
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