This commit is contained in:
2023-03-13 17:17:12 -04:00
parent b0559d9726
commit 37f3bfde62
12 changed files with 311 additions and 29 deletions

View File

@@ -164,10 +164,14 @@ extension FileClient {
// MARK: - Private
fileprivate func url(for path: String) throws -> URL {
if #available(macOS 13.0, *) {
return URL(filePath: path)
} else {
// Fallback on earlier versions
#if os(Linux)
return URL(fileURLWithPath: path)
}
#else
if #available(macOS 13.0, *) {
return URL(filePath: path)
} else {
// Fallback on earlier versions
return URL(fileURLWithPath: path)
}
#endif
}