apple / swift-foundation

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

FoundationEssentials: ensure that the path exists before iteration #665

Closed compnerd closed 4 weeks ago

compnerd commented 4 weeks ago

When performing a subpathsOfDirectory, ensure that the path exists. On the non-Windows path, _FTSSequence will perform the initial statvfs during construction which obscured this requirement. We instead explicitly inline this call in the implementation. This repairs further test failures.

compnerd commented 4 weeks ago

@swift-ci please test