diff --git a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/File.kt b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/File.kt index f10c2f25..0bc89117 100644 --- a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/File.kt +++ b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/File.kt @@ -6,7 +6,7 @@ import platform.Foundation.* actual class File actual constructor(path: String) : NSURL(fileURLWithPath = path) { actual constructor(folder: File, filename: String) - : this(NSURL(string = filename, relativeToURL = folder).absoluteString ?: "") // TODO: or use 'fileURLWithPath'? + : this(folder.URLByAppendingPathComponent(filename)?.path ?: "") actual fun getAbsolutePath(): String {