Implemented the "init(at: )" initialiser function for the URL+Inits extension in the Library target.

This commit is contained in:
Javier Cicchelli 2025-01-11 03:19:59 +01:00
parent 2128c0cde2
commit 739fe0c8de

View File

@ -0,0 +1,15 @@
import Foundation
extension URL {
// MARK: Initialisers
init(at filePath: String) {
if #available(macOS 13.0, *) {
self = URL(filePath: filePath)
} else {
self = URL(fileURLWithPath: filePath)
}
}
}