Skip to content

Commit 1478559

Browse files
authored
Merge pull request #1777 from ahoppen/access-level-import-guarded
Guard access-level import by `compiler(>=6)`
2 parents 9e9579d + cbc8aed commit 1478559

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SwiftExtensions/FileManagerExtensions.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
#if compiler(>=6)
1314
package import Foundation
15+
#else
16+
import Foundation
17+
#endif
1418

1519
extension FileManager {
1620
/// Same as `fileExists(atPath:)` but takes a `URL` instead of a `String`.

0 commit comments

Comments
 (0)