No fatal on linux Swift < 5

This commit is contained in:
Max Howell
2020-01-25 12:44:46 -05:00
parent 260196a27a
commit 6e1eeb158a
2 changed files with 6 additions and 1 deletions

View File

@@ -130,7 +130,11 @@ public extension Path.Finder {
while let path = next() {
switch try closure(path) {
case .skip:
#if !os(Linux) || swift(>=5.0)
enumerator.skipDescendants()
#else
fputs("warning: skip is not implemented for Swift < 5.0\n", stderr)
#endif
case .abort:
return
case .continue: