apple / swift-foundation

The Foundation project
Apache License 2.0
2.29k stars 135 forks source link

FoundationEssentials: account for relative paths in iteration #635

Closed compnerd closed 1 month ago

compnerd commented 1 month ago

We are not changing the working directory in between recursive calls. This is a problem when trying to enumerate the subpaths of a directory in the recursive call where the parent path was lost. Concatenate the parent path before recursing.

compnerd commented 1 month ago

@swift-ci please test